Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInitialized ¶
func IsInitialized() bool
IsInitialized returns whether the logger has been initialized
Types ¶
type Config ¶
type Config struct { Environment string TimeFormat string Output string Level string Path string FilePerms os.FileMode }
Config holds logger configuration
type LogEvent ¶
type LogEvent interface { Str(key string, value string) LogEvent Int(key string, value int) LogEvent Bool(key string, value bool) LogEvent Float64(key string, value float64) LogEvent Err(err error) LogEvent Interface(key string, value interface{}) LogEvent Time(key string, value time.Time) LogEvent Dur(key string, value time.Duration) LogEvent Msg(msg string) Msgf(format string, v ...interface{}) }
LogEvent represents a logging event that can be chained
Click to show internal directories.
Click to hide internal directories.