Add complete log configuration
This commit is contained in:
parent
57db97b32c
commit
cef9bbd530
4 changed files with 64 additions and 11 deletions
|
@ -11,9 +11,9 @@ import (
|
|||
|
||||
var logger *logs.BeeLogger
|
||||
|
||||
func NewLogger() {
|
||||
logger = logs.NewLogger(10000)
|
||||
logger.SetLogger("console", "")
|
||||
func NewLogger(bufLen int64, mode, config string) {
|
||||
logger = logs.NewLogger(bufLen)
|
||||
logger.SetLogger(mode, config)
|
||||
}
|
||||
|
||||
func Trace(format string, v ...interface{}) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue