Documentation ¶
Index ¶
- type ZerologLogger
- func (logger *ZerologLogger) Debug(message string)
- func (logger *ZerologLogger) Debugf(format string, values ...interface{})
- func (logger *ZerologLogger) Error(message string)
- func (logger *ZerologLogger) Errorf(format string, values ...interface{})
- func (logger *ZerologLogger) GetLogLevel() applogger.LogLevel
- func (logger *ZerologLogger) Info(message string)
- func (logger *ZerologLogger) Infof(format string, values ...interface{})
- func (logger *ZerologLogger) Panic(message string)
- func (logger *ZerologLogger) Panicf(format string, values ...interface{})
- func (logger *ZerologLogger) SetLogLevel(level applogger.LogLevel)
- func (logger *ZerologLogger) WithFields(fields applogger.LogFields) applogger.Logger
- func (logger *ZerologLogger) WithInterface(key string, value interface{}) applogger.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ZerologLogger ¶
type ZerologLogger struct {
// contains filtered or unexported fields
}
ZerologLogger implements applogger.Logger interface and provide logging service using zerolog.
func NewZerologLogger ¶
func NewZerologLogger(output io.Writer) *ZerologLogger
func NewZerologLoggerWithColor ¶
func NewZerologLoggerWithColor(output io.Writer) *ZerologLogger
func (*ZerologLogger) Debug ¶
func (logger *ZerologLogger) Debug(message string)
func (*ZerologLogger) Debugf ¶
func (logger *ZerologLogger) Debugf(format string, values ...interface{})
func (*ZerologLogger) Error ¶
func (logger *ZerologLogger) Error(message string)
func (*ZerologLogger) Errorf ¶
func (logger *ZerologLogger) Errorf(format string, values ...interface{})
func (*ZerologLogger) GetLogLevel ¶
func (logger *ZerologLogger) GetLogLevel() applogger.LogLevel
func (*ZerologLogger) Info ¶
func (logger *ZerologLogger) Info(message string)
func (*ZerologLogger) Infof ¶
func (logger *ZerologLogger) Infof(format string, values ...interface{})
func (*ZerologLogger) Panic ¶
func (logger *ZerologLogger) Panic(message string)
func (*ZerologLogger) Panicf ¶
func (logger *ZerologLogger) Panicf(format string, values ...interface{})
func (*ZerologLogger) SetLogLevel ¶
func (logger *ZerologLogger) SetLogLevel(level applogger.LogLevel)
func (*ZerologLogger) WithFields ¶
func (logger *ZerologLogger) WithFields(fields applogger.LogFields) applogger.Logger
func (*ZerologLogger) WithInterface ¶
func (logger *ZerologLogger) WithInterface(key string, value interface{}) applogger.Logger
Click to show internal directories.
Click to hide internal directories.