aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-23 12:32:16 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-23 12:32:16 -0400
commit003298ef1d53e1d9837bcac5aadb2e9e159a7497 (patch)
tree2faa51f3b4f207d68fa6db4aa81bfdedbfeb2fc7 /modules
parentf8cfb81fb027313e45b8ce505200f3d48b306fe2 (diff)
downloadgitea-003298ef1d53e1d9837bcac5aadb2e9e159a7497.tar.gz
gitea-003298ef1d53e1d9837bcac5aadb2e9e159a7497.zip
Add default behave of logger
Diffstat (limited to 'modules')
-rw-r--r--modules/log/log.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/log/log.go b/modules/log/log.go
index 80ade3d5b2..0c07c7c62a 100644
--- a/modules/log/log.go
+++ b/modules/log/log.go
@@ -11,6 +11,11 @@ import (
var logger *logs.BeeLogger
+func init() {
+ logger = logs.NewLogger(10000)
+ logger.SetLogger("console", `{"level": 0}`)
+}
+
func NewLogger(bufLen int64, mode, config string) {
logger = logs.NewLogger(bufLen)
logger.SetLogger(mode, config)