Skip to content

Commit

Permalink
Create 0_28_0_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
donnie4w committed Nov 22, 2024
1 parent 04c6434 commit 08906c7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/0_28_0_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package test

import (
"github.com/donnie4w/go-logger/logger"
"testing"
)

func TestOption4mixed(t *testing.T) {
logger.SetOption(&logger.Option{Console: true, FileOption: &logger.FileMixedMode{Filename: "testmixid.log", Maxbuckup: 10, IsCompress: true, Timemode: logger.MODE_DAY, Maxsize: 1 << 20}})
for i := 0; i < 10000; i++ {
logger.Debug("this is a debug message", 1111111111111111111)
logger.Info("this is a info message", 2222222222222222222)
logger.Warn("this is a warn message", 33333333333333333)
logger.Error("this is a error message", 4444444444444444444)
logger.Fatal("this is a fatal message", 555555555555555555)
}
}

0 comments on commit 08906c7

Please sign in to comment.