From f8cfb81fb027313e45b8ce505200f3d48b306fe2 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 23 Mar 2014 12:16:17 -0400 Subject: Mirror updates --- modules/log/log.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/log/log.go') diff --git a/modules/log/log.go b/modules/log/log.go index 29782fb2..80ade3d5 100644 --- a/modules/log/log.go +++ b/modules/log/log.go @@ -20,6 +20,10 @@ func Trace(format string, v ...interface{}) { logger.Trace(format, v...) } +func Debug(format string, v ...interface{}) { + logger.Debug(format, v...) +} + func Info(format string, v ...interface{}) { logger.Info(format, v...) } -- cgit v1.2.3 From 003298ef1d53e1d9837bcac5aadb2e9e159a7497 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 23 Mar 2014 12:32:16 -0400 Subject: Add default behave of logger --- modules/log/log.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/log/log.go') diff --git a/modules/log/log.go b/modules/log/log.go index 80ade3d5..0c07c7c6 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) -- cgit v1.2.3