Documentation
¶
Index ¶
Constants ¶
View Source
const ( // JSONLogFormat is json based logging format JSONLogFormat = iota // SyslogLogFormat is syslog based logging format SyslogLogFormat )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface {
Info(description ...interface{})
Debug(description ...interface{})
Warn(err error)
Error(err error)
WithField(string, interface{})
WithFields(map[string]interface{})
}
Handler is the interface for bucky logger
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is the implementation of Handler interface
func (*Logger) Debug ¶
func (l *Logger) Debug(description ...interface{})
Debug logs for log-level debug
func (*Logger) Info ¶
func (l *Logger) Info(description ...interface{})
Info logs for log-level info
func (*Logger) WithFields ¶
WithFields logs with given added fields
Click to show internal directories.
Click to hide internal directories.