Documentation ¶
Index ¶
- func Copy() zerolog.Logger
- func Debug() *zerolog.Event
- func Disable()
- func Error() *zerolog.Event
- func Fatal() *zerolog.Event
- func Info() *zerolog.Event
- func Middleware() gin.HandlerFunc
- func Panic() *zerolog.Event
- func Setup(l Level, logToConsole, logToFile bool, fp string)
- func Trace() *zerolog.Event
- func Warn() *zerolog.Event
- type Level
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶
func Middleware() gin.HandlerFunc
Middleware which provides ability to log with gin using the built-in zerolog logger instead of the default one
Types ¶
type Level ¶
Level wraps zerolog.Level in order to marshal into the config.yml file as a string
func (Level) MarshalYAML ¶
func (Level) UnmarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.