aboutsummaryrefslogtreecommitdiff
path: root/modules/log
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-19 04:08:25 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-19 04:08:25 -0400
commitcef9bbd5305d42cdb4e1b807ec0fb55fcff09067 (patch)
tree42faf9e4b2dcf27879d363bfaa9cd11d315c2fd0 /modules/log
parent57db97b32ca4085e549a41480d35cee743ca3f99 (diff)
Add complete log configuration
Diffstat (limited to 'modules/log')
-rw-r--r--modules/log/log.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/log/log.go b/modules/log/log.go
index b888f500..29782fb2 100644
--- a/modules/log/log.go
+++ b/modules/log/log.go
@@ -11,9 +11,9 @@ import (
var logger *logs.BeeLogger
-func NewLogger() {
- logger = logs.NewLogger(10000)
- logger.SetLogger("console", "")
+func NewLogger(bufLen int64, mode, config string) {
+ logger = logs.NewLogger(bufLen)
+ logger.SetLogger(mode, config)
}
func Trace(format string, v ...interface{}) {