Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitWithConfig ¶
InitWithConfig will initialize the logger with config.
Types ¶
type Config ¶
type Config struct { // Level is the log level. options: debug, info, warn, error, dpanic, panic, fatal (default: info) Level string `json:"level" yaml:"level"` // Format is the log format. options: json, console (default: console) Format string `json:"format" yaml:"format"` }
Config defines the config for logging.
Click to show internal directories.
Click to hide internal directories.