Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry interface {
Log(log Log)
WithField(key string, value interface{}) Entry
WithFields(fields F) Entry
WithError(err error) Entry
WithName(name string) Entry
Print(args ...any)
Printf(format string, args ...any)
Info(args ...any)
Infof(format string, args ...any)
Debug(args ...any)
Debugf(format string, args ...any)
DebugJson(data interface{})
Warn(args ...any)
Warnf(format string, args ...any)
Error(args ...any)
Errorf(format string, args ...any)
Fatal(args ...any)
Fatalf(format string, args ...any)
}
Entry core child logger interface
type Level ¶
type Level int
Level core level declaration
type Log ¶
Log core log interface
func NewDefaultLog ¶
NewDefaultLog returns new Log
func NewDefaultLogf ¶
NewDefaultLogf returns new Log with format args
func NewDefaultLogn ¶
NewDefaultLogn returns new Log with name args
type Logger ¶
type Logger interface {
Log(log Log)
WithField(key string, value interface{}) Entry
WithFields(fields F) Entry
WithError(err error) Entry
WithName(name string) Entry
Print(args ...any)
Printf(format string, args ...any)
Info(args ...any)
Infon(name string, args ...any)
Infof(format string, args ...any)
Debug(args ...any)
Debugn(name string, args ...any)
Debugf(format string, args ...any)
DebugJson(data interface{})
Warn(args ...any)
Warnn(name string, args ...any)
Warnf(format string, args ...any)
Error(args ...any)
Errorn(name string, args ...any)
Errorf(format string, args ...any)
Fatal(args ...any)
Fataln(name string, args ...any)
Fatalf(format string, args ...any)
}
Logger core logger interface
Click to show internal directories.
Click to hide internal directories.