Documentation ¶
Index ¶
- type CatchAllLogHandlerFunc
- type LogHandler
- type LogHandlerFunc
- type LogLevel
- type Logger
- type RootLogger
- func (l *RootLogger) AddHandler(handler *LogHandler)
- func (l *RootLogger) Debug(msg string, ctx ...interface{})
- func (l *RootLogger) Error(msg string, ctx ...interface{})
- func (l *RootLogger) Fatal(msg string, ctx ...interface{})
- func (l *RootLogger) Info(msg string, ctx ...interface{})
- func (l *RootLogger) New(ctx ...interface{}) Logger
- func (l *RootLogger) Warn(msg string, ctx ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CatchAllLogHandlerFunc ¶
type LogHandler ¶
type LogHandler struct { DebugHandler LogHandlerFunc InfoHandler LogHandlerFunc WarnHandler LogHandlerFunc ErrorHandler LogHandlerFunc FatalHandler LogHandlerFunc CatchAllHandler CatchAllLogHandlerFunc }
func NewStdOutHandler ¶
func NewStdOutHandler(useLogLevel LogLevel) *LogHandler
type LogHandlerFunc ¶
type LogHandlerFunc func(msg string, ctx ...interface{})
type RootLogger ¶
type RootLogger struct { Logger // contains filtered or unexported fields }
func New ¶
func New() *RootLogger
func NewWithContext ¶
func NewWithContext(ctx []interface{}) *RootLogger
func (*RootLogger) AddHandler ¶
func (l *RootLogger) AddHandler(handler *LogHandler)
func (*RootLogger) Debug ¶
func (l *RootLogger) Debug(msg string, ctx ...interface{})
func (*RootLogger) Error ¶
func (l *RootLogger) Error(msg string, ctx ...interface{})
func (*RootLogger) Fatal ¶
func (l *RootLogger) Fatal(msg string, ctx ...interface{})
func (*RootLogger) Info ¶
func (l *RootLogger) Info(msg string, ctx ...interface{})
func (*RootLogger) New ¶
func (l *RootLogger) New(ctx ...interface{}) Logger
func (*RootLogger) Warn ¶
func (l *RootLogger) Warn(msg string, ctx ...interface{})
Click to show internal directories.
Click to hide internal directories.