Documentation ¶
Index ¶
- func ErrorLevel() zapcore.Level
- func GetObservedLogs() *observer.ObservedLogs
- func InitLoggerConfig(config *Config)
- type Config
- type Zaplog
- func (z *Zaplog) DebugErr(e error, fields ...zapcore.Field) *Zaplog
- func (z *Zaplog) ErrorAlert(e error, fields ...zapcore.Field) *Zaplog
- func (z *Zaplog) ErrorErr(e error, fields ...zapcore.Field) *Zaplog
- func (z *Zaplog) InfoErr(e error, fields ...zapcore.Field) *Zaplog
- func (z *Zaplog) PanicErr(e error, fields ...zapcore.Field) *Zaplog
- func (z *Zaplog) WarnAlert(e error, fields ...zapcore.Field) *Zaplog
- func (z *Zaplog) WarnErr(e error, fields ...zapcore.Field) *Zaplog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetObservedLogs ¶
func GetObservedLogs() *observer.ObservedLogs
GetObservedLogs returns observed logs for testing purposes
func InitLoggerConfig ¶ added in v1.1.0
func InitLoggerConfig(config *Config)
InitLoggerConfig initialises logger with config. Labels example: map[string]string{"app": My App, env: production}
Types ¶
type Zaplog ¶
func (*Zaplog) DebugErr ¶
DebugErr is invoking Zap Logger function with error message and fields and log level Debug
func (*Zaplog) ErrorAlert ¶ added in v1.3.0
ErrorAlert is invoking Zap Logger function with error message and fields and log level Error
func (*Zaplog) ErrorErr ¶
ErrorErr is invoking Zap Logger function with error message and fields and log level Error
func (*Zaplog) InfoErr ¶
InfoErr is invoking Zap Logger function with error message and fields and log level Info
func (*Zaplog) PanicErr ¶
PanicErr is invoking Zap Logger function with error message and fields and log level Panic
Click to show internal directories.
Click to hide internal directories.