aboutsummaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-03-23 18:34:25 -0400
committerUnknwon <u@gogs.io>2017-03-23 18:34:25 -0400
commit8a3f4fc616086af121ab0c79aa3a24d30703acc9 (patch)
treec8424182196f8c3ffda81897e6e94d045cb79bde /conf
parent66c1e6b0e8308068dbddaec03585f388875f4192 (diff)
models: add config options for XORM logger (#3183)
Added new config section '[log.xorm]'.
Diffstat (limited to 'conf')
-rw-r--r--conf/app.ini10
1 files changed, 10 insertions, 0 deletions
diff --git a/conf/app.ini b/conf/app.ini
index 5ca07b95..fa28245e 100644
--- a/conf/app.ini
+++ b/conf/app.ini
@@ -348,6 +348,16 @@ LEVEL =
; Webhook URL
URL =
+[log.xorm]
+; Enable file rotation
+ROTATE = true
+; Rotate every day
+ROTATE_DAILY = true
+; Rotate once file size excesses x MB
+MAX_SIZE = 100
+; Maximum days to keep logger files
+MAX_DAYS = 3
+
[cron]
; Enable running cron tasks periodically.
ENABLED = true