1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 14:10:54 +00:00

makes console as default logger

This commit is contained in:
JessonChan 2016-03-24 19:32:29 +08:00
parent d8bed89c44
commit 06299fa47b

View File

@ -464,7 +464,11 @@ func (bl *BeeLogger) flush() {
} }
// BeeLogger references the used application logger. // BeeLogger references the used application logger.
var beeLogger = NewLogger() var beeLogger *BeeLogger
func init() {
beeLogger = NewLogger()
}
// GetLogger returns the default BeeLogger // GetLogger returns the default BeeLogger
func GetBeeLogger() *BeeLogger { func GetBeeLogger() *BeeLogger {