Documentation ¶
Index ¶
Constants ¶
View Source
const ( LogRotateDate = 1 LogRotateSize = 10 LogBackupCount = 7 )
constant values for log rotate parameters
View Source
const ( LevelDebug = "DEBUG" LevelInfo = "INFO" )
log level
View Source
const ( Stdout = "stdout" File = "file" )
output type
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct { Writers string `yaml:"logWriters"` LoggerLevel string `yaml:"logLevel"` LoggerFile string `yaml:"logFile"` LogFormatText bool `yaml:"logFormatText"` LogColorMode string `yaml:"logColorMode"` LogRotateDisable bool `yaml:"logRotateDisable"` LogRotateCompress bool `yaml:"logRotateCompress"` LogRotateAge int `yaml:"logRotateAge"` LogRotateSize int `yaml:"logRotateSize"` LogBackupCount int `yaml:"logBackupCount"` AccessLogFile string `yaml:"accessLogFile"` }
Options is the struct for lager information(lager.yaml)
Click to show internal directories.
Click to hide internal directories.