Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileOptions ¶
type FileOptions struct {
//FolderPath is the path to the folder where the log files will be stored
FolderPath string
//FileName is the filename prefix that will be used to create the log file. Suffix will be added to differentiate between log file types.
FileName string
//MaxAge is the dureation between rotations of the log files
MaxAge time.Duration
}
FileOptions controls the options that revolve around file logging. If it's not specified, file won't be created
type MongoOptions ¶
MongoOptions controls the options that revolve around file logging. If it's not specified, file won't be created
type Options ¶
type Options struct {
// Verbose controls the verbosity of the log (Set to true if you want a DebugLevel logger)
Verbose bool
File FileOptions
DB MongoOptions
}
type SimpleLogger ¶
type SimpleLogger interface {
Print(string)
}
type StructuredLogger ¶
type StructuredLogger interface {
SimpleLogger
WithField(key string, object interface{}) StructuredLogger
}
type VoidLogger ¶
type VoidLogger struct{}
func (VoidLogger) Print ¶
func (v VoidLogger) Print(string)
func (VoidLogger) WithField ¶
func (v VoidLogger) WithField(key string, object interface{}) StructuredLogger
Click to show internal directories.
Click to hide internal directories.