mirror of
https://github.com/astaxie/beego.git
synced 2024-11-05 21:10:55 +00:00
22 lines
373 B
Go
22 lines
373 B
Go
|
package logs
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestConsole(t *testing.T) {
|
||
|
log := NewLogger(10000)
|
||
|
log.Trace("trace")
|
||
|
log.Info("info")
|
||
|
log.Warn("warning")
|
||
|
log.Debug("debug")
|
||
|
log.Critical("critical")
|
||
|
log2 := NewLogger(100)
|
||
|
log2.SetLogger("console", `{"level":1}`)
|
||
|
log.Trace("trace")
|
||
|
log.Info("info")
|
||
|
log.Warn("warning")
|
||
|
log.Debug("debug")
|
||
|
log.Critical("critical")
|
||
|
}
|