mirror of
https://github.com/tobycroft/gorose-pro.git
synced 2025-09-26 20:51:27 +08:00
14 lines
289 B
Go
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")
|
|
}
|