Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Teal ... Teal = Color("\033[1;36m%s\033[0m") // Yellow ... Yellow = Color("\033[35m%s\033[0m") // Green Green = Color("\033[32m%s\033[0m") )
Functions ¶
func SetupWithOption ¶
Types ¶
type Config ¶
type Config struct { Env string `mapstructure:"env"` App string `mapstructure:"app"` Debug bool `mapstructure:"debug"` Level Level `mapstructure:"level"` // contains filtered or unexported fields }
Config for setup log want output setting
type Level ¶
type Level int8
Level defines log levels.
const ( // DebugLevel defines debug log level. DebugLevel Level = iota // InfoLevel defines info log level. InfoLevel // WarnLevel defines warn log level. WarnLevel // ErrorLevel defines error log level. ErrorLevel // FatalLevel defines fatal log level. FatalLevel // PanicLevel defines panic log level. PanicLevel // NoLevel defines an absent log level. NoLevel // Disabled disables the logger. Disabled // TraceLevel defines trace log level. TraceLevel Level = -1 )
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
An Option is passed to Config
func WithOutput ¶
Click to show internal directories.
Click to hide internal directories.