Files
gorose-pro/logger_test.go
2021-09-26 11:56:27 +08:00

14 lines
289 B
Go

package gorose
import (
"testing"
"time"
)
func TestDefaultLogger(t *testing.T) {
l := NewLogger(&LogOption{FilePath: "/tmp/gorose.log", EnableErrorLog: true})
var sqlstr = "select xxx from xxx where a='a' and b=\"33\""
l.Sql(sqlstr, time.Duration(1<<4))
t.Log("logger success")
}