aboutsummaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-02-09 19:29:59 -0500
committerUnknwon <u@gogs.io>2017-02-09 19:29:59 -0500
commiteb66060cd7b9bce996b1d75ae80ce1ef31d5ce62 (patch)
treecb692b6a3504985f3d0de7de159a4b8cc6f0d4a5 /conf
parent8a19f8a63c12fb1119c86fa65fa408ecba00bc6c (diff)
log: start using gopkg.in/clog.v1
Diffstat (limited to 'conf')
-rw-r--r--conf/app.ini51
1 files changed, 9 insertions, 42 deletions
diff --git a/conf/app.ini b/conf/app.ini
index 10cfc508..15f674bb 100644
--- a/conf/app.ini
+++ b/conf/app.ini
@@ -300,12 +300,12 @@ FORMAT =
[log]
ROOT_PATH =
-; Either "console", "file", "conn", "smtp" or "database", default is "console"
+; Can be "console" and "file", default is "console"
; Use comma to separate multiple modes, e.g. "console, file"
MODE = console
; Buffer length of channel, keep it as it is if you don't know what it is.
-BUFFER_LEN = 10000
-; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
+BUFFER_LEN = 100
+; Either "Trace", "Info", "Warn", "Error", "Fatal", default is "Trace"
LEVEL = Trace
; For "console" mode only
@@ -315,50 +315,17 @@ LEVEL =
; For "file" mode only
[log.file]
LEVEL =
-; This enables automated log rotate(switch of following options), default is true
+; This enables automated log rotate (switch of following options)
LOG_ROTATE = true
-; Max line number of single file, default is 1000000
-MAX_LINES = 1000000
+; Segment log daily
+DAILY_ROTATE = true
; 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
+; Max line number of single file
+MAX_LINES = 1000000
+; Expired days of log file (delete after max days)
MAX_DAYS = 7
-; 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 =
-PASSWD =
-; Receivers, can be one or more, e.g. 1@example.com,2@example.com
-RECEIVERS =
-
-; For "database" mode only
-[log.database]
-LEVEL =
-; Either "mysql" or "postgres"
-DRIVER =
-; Based on xorm, e.g.: root:root@localhost/gogs?charset=utf8
-CONN =
-
[cron]
; Enable running cron tasks periodically.
ENABLED = true