fixed error usage in simple logger

make default log level DEBUG
This commit is contained in:
Nash Tsai 2014-08-20 09:48:04 +08:00
parent 9ae84a13fc
commit 55c9cb4c07
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ const (
const (
DEFAULT_LOG_PREFIX = "[xorm]"
DEFAULT_LOG_FLAG = log.Ldate | log.Lmicroseconds
DEFAULT_LOG_LEVEL = LOG_INFO
DEFAULT_LOG_LEVEL = LOG_DEBUG
)
type SimpleLogger struct {
@ -43,7 +43,7 @@ func NewSimpleLogger3(out io.Writer, prefix string, flag int, logLevel LogLevel)
ERR: log.New(out, fmt.Sprintf("%s [error] ", prefix), flag),
INFO: log.New(out, fmt.Sprintf("%s [info] ", prefix), flag),
WARN: log.New(out, fmt.Sprintf("%s [warn] ", prefix), flag),
LogLevel: LOG_INFO,
LogLevel: logLevel,
}
}