|
|
@ -15,13 +15,14 @@ var ( |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
func init() { |
|
|
|
func init() { |
|
|
|
logger = logs.NewLogger(10000) |
|
|
|
NewLogger(10000, "console", `{"level": 0}`) |
|
|
|
logger.SetLogger("console", `{"level": 0}`) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func NewLogger(bufLen int64, mode, config string) { |
|
|
|
func NewLogger(bufLen int64, mode, config string) { |
|
|
|
Mode, Config = mode, config |
|
|
|
Mode, Config = mode, config |
|
|
|
logger = logs.NewLogger(bufLen) |
|
|
|
logger = logs.NewLogger(bufLen) |
|
|
|
|
|
|
|
logger.EnableFuncCallDepth(true) |
|
|
|
|
|
|
|
logger.SetLogFuncCallDepth(4) |
|
|
|
logger.SetLogger(mode, config) |
|
|
|
logger.SetLogger(mode, config) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|