summaryrefslogtreecommitdiffstats
path: root/modules/setting/log.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/setting/log.go')
-rw-r--r--modules/setting/log.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/setting/log.go b/modules/setting/log.go
index c6b5b1a617..aafb4b3725 100644
--- a/modules/setting/log.go
+++ b/modules/setting/log.go
@@ -273,6 +273,15 @@ func newLogService() {
golog.SetOutput(log.NewLoggerAsWriter("INFO", log.GetLogger(log.DEFAULT)))
}
+// NewLogServices creates all the log services
+func NewLogServices(disableConsole bool) {
+ newLogService()
+ newMacaronLogService()
+ newRouterLogService()
+ newAccessLogService()
+ NewXORMLogService(disableConsole)
+}
+
// NewXORMLogService initializes xorm logger service
func NewXORMLogService(disableConsole bool) {
EnableXORMLog = Cfg.Section("log").Key("ENABLE_XORM_LOG").MustBool(true)