Documentation ¶
Index ¶
Constants ¶
View Source
const ( TimeFormatRFC3339 = "2006-01-02T15:04:05.999Z" TimeFormatDefault = "2006-01-02 15:04:05.000000" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // ConsoleLoggingEnabled enable console logging ConsoleLoggingEnabled bool // FileLoggingEnabled makes the framework log to a file // the fields below can be skipped if this value is false! FileLoggingEnabled bool // Directory to log to when file logging is enabled Directory string // Filename is the name of the logfile which will be placed inside the directory Filename string // MaxSize the max size in MB of the logfile before it's rolled MaxSize int // MaxBackups the max number of rolled files to keep MaxBackups int // MaxAge the max age in days to keep a logfile MaxAge int // LogTimeFieldFormat UNIX Time is faster and smaller than most timestamps, if not set use the default UNIX time LogTimeFieldFormat string // ErrorStackMarshaler extract the stack from err if any. ErrorStackMarshaler bool }
Config - Configuration for logging
Click to show internal directories.
Click to hide internal directories.