Documentation ¶
Index ¶
- Constants
- func Debugf(format string, args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Infof(format string, args ...interface{})
- func NewLogger(config Configuration) error
- func Panicf(format string, args ...interface{})
- func Warnf(format string, args ...interface{})
- type Configuration
- type Fields
- type Logger
Constants ¶
View Source
const ( //for verbose logging Debug = "debug" Info = "info" Warn = "warn" Error = "error" //Fatal is for logging fatal messages. The sytem shutsdown after logging the message. Fatal = "fatal" )
View Source
const (
InstanceZapLogger int = iota
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Configuration ¶
type Configuration struct { EnableConsole bool ConsoleJSONFormat bool ConsoleLevel string EnableFile bool FileJSONFormat bool FileLevel string FileLocation string }
Configuration stores the config for the logger
Click to show internal directories.
Click to hide internal directories.