logger

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatFields

func FormatFields(keyvals []interface{}) map[string]interface{}

FormatFields formats input keyvals ref: https://github.com/goadesign/goa/blob/v1/logging/logrus/adapter.go#L64

Types

type Logger

type Logger struct {
	*zerolog.Logger
}

Logger is an adapted zerologger

func New

func New(serviceName string, isDebug, isConsole bool) *Logger

func (*Logger) Log

func (logger *Logger) Log(keyvals ...interface{}) error

Log is called by the log middleware to log HTTP requests key values

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL