|
|
@ -9,7 +9,10 @@ import ( |
|
|
|
"github.com/gogits/logs" |
|
|
|
"github.com/gogits/logs" |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
var logger *logs.BeeLogger |
|
|
|
var ( |
|
|
|
|
|
|
|
logger *logs.BeeLogger |
|
|
|
|
|
|
|
Mode, Config string |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
func init() { |
|
|
|
func init() { |
|
|
|
logger = logs.NewLogger(10000) |
|
|
|
logger = logs.NewLogger(10000) |
|
|
@ -17,6 +20,7 @@ func init() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func NewLogger(bufLen int64, mode, config string) { |
|
|
|
func NewLogger(bufLen int64, mode, config string) { |
|
|
|
|
|
|
|
Mode, Config = mode, config |
|
|
|
logger = logs.NewLogger(bufLen) |
|
|
|
logger = logs.NewLogger(bufLen) |
|
|
|
logger.SetLogger(mode, config) |
|
|
|
logger.SetLogger(mode, config) |
|
|
|
} |
|
|
|
} |
|
|
|