Documentation ¶
Index ¶
- func Debug(format string, args ...any)
- func DebugW(msg string, args ...any)
- func Error(format string, args ...any)
- func ErrorW(msg string, args ...any)
- func Fatal(format string, args ...any)
- func FatalW(msg string, args ...any)
- func Info(format string, args ...any)
- func InfoW(msg string, args ...any)
- func Warn(format string, args ...any)
- func WarnW(msg string, args ...any)
- type Config
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { App string `json:"app,omitempty" yaml:"app"` Format string `json:"format,omitempty" yaml:"format"` // text(default) json Level string `json:"level,omitempty" yaml:"level"` // debug(default) < info < warn < error Stdout bool `json:"stdout,omitempty" yaml:"stdout"` Rotate lumberjack.Logger `json:"rotate" yaml:"rotate"` }
Click to show internal directories.
Click to hide internal directories.