You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package log |
|
|
|
import ( |
|
"testing" |
|
"time" |
|
) |
|
|
|
func TestTo(t *testing.T) { |
|
to("./log.txt", &LoggerData{ |
|
Level: LevelDebug, |
|
ReqId: "2da2u32u131j", |
|
DateTime: "2022-11-15 20:20:20", |
|
Message: "debug file log", |
|
File: []string{ |
|
"./file.go", |
|
}, |
|
}) |
|
time.Sleep(time.Second * 10) |
|
}
|
|
|