Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CommonTargets = commonTargetEnum{ TargetStdOut: ":stdout", TargetStdErr: ":stderr", TargetNull: ":null", } VerbosityLevel = verbosityLevel{ Error: -1, Warn: 0, Info: 1, Debug: 2, Trace: 3, } )
Functions ¶
func Init ¶
func Init(opts *Options, result *LogInitResult)
Types ¶
type LogInitResult ¶
type Options ¶
type Options struct { VerbosityLevel int LogFile string FallbackFileName string FallbackDir string LoggerMutex bool Rolling bool MaxSize int // megabytes MaxBackups int MaxAge int // days CompressBackups bool Humanize bool EnableColor bool StdLogLevel log.Level }
func DefaultOptions ¶
func DefaultOptions() Options
Click to show internal directories.
Click to hide internal directories.