This commit is contained in:
2023-03-20 11:56:29 +08:00
parent 1b026b8f2e
commit c000be429e
2 changed files with 22 additions and 9 deletions

View File

@@ -22,8 +22,7 @@ func TestLog(t *testing.T) {
func TestLogFile(t *testing.T) {
config := DefaultConfig
config.NeedLogFile = false
config.LogFilePath = "logs"
config.NeedLogFile = true
Init("debug", config)
Debug("time: ", time.Now())