Documentation ¶
Index ¶
- type LogConfig
- type Logger
- type ZapLogger
- func (l *ZapLogger) Close() error
- func (l *ZapLogger) Debug(msg string, keysAndValues ...interface{})
- func (l *ZapLogger) Error(msg string, keysAndValues ...interface{})
- func (l *ZapLogger) Fatal(msg string, keysAndValues ...interface{})
- func (l *ZapLogger) Info(msg string, keysAndValues ...interface{})
- func (l *ZapLogger) Warn(msg string, keysAndValues ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { Info(msg string, keysAndValues ...interface{}) Error(msg string, keysAndValues ...interface{}) Warn(msg string, keysAndValues ...interface{}) Debug(msg string, keysAndValues ...interface{}) Fatal(msg string, keysAndValues ...interface{}) Close() error }
Logger is the interface that defines the logging methods
type ZapLogger ¶
type ZapLogger struct { *zap.SugaredLogger // contains filtered or unexported fields }
ZapLogger is the concrete implementation of the Logger interface
Click to show internal directories.
Click to hide internal directories.