|
|
@ -577,13 +577,6 @@ LEVEL = Info
|
|
|
|
; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "None"
|
|
|
|
; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "None"
|
|
|
|
STACKTRACE_LEVEL = None
|
|
|
|
STACKTRACE_LEVEL = None
|
|
|
|
|
|
|
|
|
|
|
|
; Generic log modes
|
|
|
|
|
|
|
|
[log.x]
|
|
|
|
|
|
|
|
FLAGS = stdflags
|
|
|
|
|
|
|
|
EXPRESSION =
|
|
|
|
|
|
|
|
PREFIX =
|
|
|
|
|
|
|
|
COLORIZE = false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; For "console" mode only
|
|
|
|
; For "console" mode only
|
|
|
|
[log.console]
|
|
|
|
[log.console]
|
|
|
|
FLAGS = level
|
|
|
|
FLAGS = level
|
|
|
@ -591,53 +584,6 @@ LEVEL =
|
|
|
|
STDERR = false
|
|
|
|
STDERR = false
|
|
|
|
COLORIZE = false
|
|
|
|
COLORIZE = false
|
|
|
|
|
|
|
|
|
|
|
|
; For "file" mode only
|
|
|
|
|
|
|
|
[log.file]
|
|
|
|
|
|
|
|
LEVEL =
|
|
|
|
|
|
|
|
; Set the file_name for the logger. If this is a relative path this
|
|
|
|
|
|
|
|
; will be relative to ROOT_PATH
|
|
|
|
|
|
|
|
FILE_NAME =
|
|
|
|
|
|
|
|
; This enables automated log rotate(switch of following options), default is true
|
|
|
|
|
|
|
|
LOG_ROTATE = true
|
|
|
|
|
|
|
|
; Max number of lines in a single file, default is 1000000
|
|
|
|
|
|
|
|
MAX_LINES = 1000000
|
|
|
|
|
|
|
|
; Max size shift of a single file, default is 28 means 1 << 28, 256MB
|
|
|
|
|
|
|
|
MAX_SIZE_SHIFT = 28
|
|
|
|
|
|
|
|
; Segment log daily, default is true
|
|
|
|
|
|
|
|
DAILY_ROTATE = true
|
|
|
|
|
|
|
|
; delete the log file after n days, default is 7
|
|
|
|
|
|
|
|
MAX_DAYS = 7
|
|
|
|
|
|
|
|
; compress logs with gzip
|
|
|
|
|
|
|
|
COMPRESS = true
|
|
|
|
|
|
|
|
; compression level see godoc for compress/gzip
|
|
|
|
|
|
|
|
COMPRESSION_LEVEL = -1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; For "conn" mode only
|
|
|
|
|
|
|
|
[log.conn]
|
|
|
|
|
|
|
|
LEVEL =
|
|
|
|
|
|
|
|
; Reconnect host for every single message, default is false
|
|
|
|
|
|
|
|
RECONNECT_ON_MSG = false
|
|
|
|
|
|
|
|
; Try to reconnect when connection is lost, default is false
|
|
|
|
|
|
|
|
RECONNECT = false
|
|
|
|
|
|
|
|
; Either "tcp", "unix" or "udp", default is "tcp"
|
|
|
|
|
|
|
|
PROTOCOL = tcp
|
|
|
|
|
|
|
|
; Host address
|
|
|
|
|
|
|
|
ADDR =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; For "smtp" mode only
|
|
|
|
|
|
|
|
[log.smtp]
|
|
|
|
|
|
|
|
LEVEL =
|
|
|
|
|
|
|
|
; Name displayed in mail title, default is "Diagnostic message from server"
|
|
|
|
|
|
|
|
SUBJECT = Diagnostic message from server
|
|
|
|
|
|
|
|
; Mail server
|
|
|
|
|
|
|
|
HOST =
|
|
|
|
|
|
|
|
; Mailer user name and password
|
|
|
|
|
|
|
|
USER =
|
|
|
|
|
|
|
|
; Use PASSWD = `your password` for quoting if you use special characters in the password.
|
|
|
|
|
|
|
|
PASSWD =
|
|
|
|
|
|
|
|
; Receivers, can be one or more, e.g. 1@example.com,2@example.com
|
|
|
|
|
|
|
|
RECEIVERS =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[cron]
|
|
|
|
[cron]
|
|
|
|
; Enable running cron tasks periodically.
|
|
|
|
; Enable running cron tasks periodically.
|
|
|
|
ENABLED = true
|
|
|
|
ENABLED = true
|
|
|
|