summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-19 04:08:25 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-19 04:08:25 -0400
commitcef9bbd5305d42cdb4e1b807ec0fb55fcff09067 (patch)
tree42faf9e4b2dcf27879d363bfaa9cd11d315c2fd0 /conf
parent57db97b32ca4085e549a41480d35cee743ca3f99 (diff)
downloadgitea-cef9bbd5305d42cdb4e1b807ec0fb55fcff09067.tar.gz
gitea-cef9bbd5305d42cdb4e1b807ec0fb55fcff09067.zip
Add complete log configuration
Diffstat (limited to 'conf')
-rw-r--r--conf/app.ini12
1 files changed, 6 insertions, 6 deletions
diff --git a/conf/app.ini b/conf/app.ini
index e42fc24432..debfcf93bd 100644
--- a/conf/app.ini
+++ b/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 = \ No newline at end of file