1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-25 08:59:31 -05:00

Add default behave of logger

This commit is contained in:
Unknown 2014-03-23 12:32:16 -04:00
parent f8cfb81fb0
commit 003298ef1d

View file

@ -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)