From d9d329bec8984723dfad97d496278c4c9e35d5d5 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 9 Feb 2017 23:53:57 -0500 Subject: modules/setting: add Slack logger Conn and email loggers are removed for now unless people requested for them, then try to add back in gopkg.in/clog.v1 --- conf/app.ini | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'conf') diff --git a/conf/app.ini b/conf/app.ini index 15f674bb..48e483dc 100644 --- a/conf/app.ini +++ b/conf/app.ini @@ -298,6 +298,7 @@ MAX_FILES = 5 ; For more information about the format see http://golang.org/pkg/time/#pkg-constants FORMAT = +; General settings of loggers [log] ROOT_PATH = ; Can be "console" and "file", default is "console" @@ -310,10 +311,12 @@ LEVEL = Trace ; For "console" mode only [log.console] +; leave empty to inherit LEVEL = ; For "file" mode only [log.file] +; leave empty to inherit LEVEL = ; This enables automated log rotate (switch of following options) LOG_ROTATE = true @@ -326,6 +329,13 @@ MAX_LINES = 1000000 ; Expired days of log file (delete after max days) MAX_DAYS = 7 +; For "slack" mode only +[log.slack] +; leave empty to inherit +LEVEL = +; Webhook URL +URL = + [cron] ; Enable running cron tasks periodically. ENABLED = true -- cgit v1.2.3