Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// Service - the logger has this field add as "service"
ServiceName string
// Level specifies the logging level. "DEBUG" is debugging, anything else is INFO
Level string
// Console
//
// If true then console style output is used - usually for client-side applications.
// If false log output contains timestamp and a sampling interface.
Console bool
// Sampling - when console is false then log output is sampled to mitigate sudden
// bursts of output typically when an error of some kind occurs.
Sampling uint32
zerolog.Logger
}
Logger represents an interface to a typical logger including logging levels, format control and others to be elucidated in future commits.
Click to show internal directories.
Click to hide internal directories.