Add complete log configuration
This commit is contained in:
parent
57db97b32c
commit
cef9bbd530
4 changed files with 64 additions and 11 deletions
12
conf/app.ini
12
conf/app.ini
|
@ -47,20 +47,20 @@ BUFFER_LEN = 10000
|
|||
; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
|
||||
LEVEL = Trace
|
||||
|
||||
; For "console" mode only, all log files will be stored in "/log" directory
|
||||
; For "console" mode only
|
||||
[log.console]
|
||||
LEVEL =
|
||||
|
||||
; For "file" mode only
|
||||
[log.file]
|
||||
LEVEL =
|
||||
FILE_NAME = "gogs.log"
|
||||
FILE_NAME = log/gogs.log
|
||||
; This enables automated log rotate(switch of following options), default is true
|
||||
LOG_ROTATE =
|
||||
LOG_ROTATE = true
|
||||
; Max line number of single file, default is 1000000
|
||||
MAX_LINES = 1000000
|
||||
; Max size of single file, default is 1 << 28, 256MB
|
||||
MAX_SIZE = 1 << 28
|
||||
; Max size shift of single file, default is 28 means 1 << 28, 256MB
|
||||
MAX_SIZE_SHIFT = 28
|
||||
; Segment log daily, default is true
|
||||
DAILY_ROTATE = true
|
||||
; Expired days of log file(delete after max days), default is 7
|
||||
|
@ -88,5 +88,5 @@ HOST =
|
|||
; Mailer user name and password
|
||||
USER =
|
||||
PASSWD =
|
||||
; Receivers, can be one or more
|
||||
; Receivers, can be one or more, e.g. ["1@example.com","2@example.com"]
|
||||
RECEIVERS =
|
Loading…
Add table
Add a link
Reference in a new issue