Documentation
¶
Index ¶
- type Logger
- func (l *Logger) DebugFields(msg string, fields map[string]interface{})
- func (l *Logger) ErrorFields(msg string, fields map[string]interface{})
- func (l *Logger) FatalFields(msg string, fields map[string]interface{})
- func (l *Logger) GetZerolog() *zerolog.Logger
- func (l *Logger) InfoFields(msg string, fields map[string]interface{})
- func (l *Logger) SetGlobal()
- func (l *Logger) WarnFields(msg string, fields map[string]interface{})
- func (l *Logger) With() zerolog.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger wraps zerolog.Logger
func (*Logger) DebugFields ¶
DebugFields logs a debug message with fields
func (*Logger) ErrorFields ¶
ErrorFields logs an error message with fields
func (*Logger) FatalFields ¶
FatalFields logs a fatal message with fields and exits
func (*Logger) GetZerolog ¶
GetZerolog returns the underlying zerolog.Logger
func (*Logger) InfoFields ¶
InfoFields logs an info message with fields
func (*Logger) SetGlobal ¶
func (l *Logger) SetGlobal()
SetGlobal sets the logger as the global logger
func (*Logger) WarnFields ¶
WarnFields logs a warning message with fields
Click to show internal directories.
Click to hide internal directories.