Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLogger ¶
func CreateLogger(options Options) (gen.LoggerBehavior, error)
Types ¶
type Options ¶
type Options struct {
// TimeFormat enables output time in the defined format. See https://pkg.go.dev/time#pkg-constants
// Not defined format makes output time as a timestamp in nanoseconds.
TimeFormat string
// IncludeBehavior includes process/meta behavior to the log message
IncludeBehavior bool
// IncludeName includes registered process name to the log message
IncludeName bool
// ShortLevelName enables shortnames for the log levels
ShortLevelName bool
// Path directory for the log files
Path string
// Prefix
Prefix string
// Period rotation period
Period time.Duration
// Compress enables gzipping for the log files
Compress bool
// Depth how many log files in the rotation
Depth int
}
Click to show internal directories.
Click to hide internal directories.