Add when to write method

This commit is contained in:
Ming Deng
2021-02-21 12:15:45 +08:00
parent bef4468377
commit 45ab79249a
3 changed files with 8 additions and 0 deletions

View File

@@ -25,4 +25,9 @@ func TestBeeLoggerDelLogger(t *testing.T) {
prefix := "My-Cus"
l := GetLogger(prefix)
assert.NotNil(t, l)
l.Print("hello")
GetLogger().Print("hello")
SetPrefix("aaa")
Info("hello")
}