Documentation ¶
Index ¶
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
func SetupLogger ¶
Types ¶
type Config ¶
type Config struct { Level Level `yaml:"level"` LogToFile bool `yaml:"log_to_file"` LogToConsole bool `yaml:"log_to_console"` }
func DefaultConfig ¶
func DefaultConfig() *Config
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.