logger := onelog.New(os.Stdout, onelog.ALL)
// populate log pre-fields here before set to OpenDriver
db := sqldblogger.OpenDriver(
dsn,
&mysql.MySQLDriver{},
onelogadapter.New(logger),
// optional config...
)
onelogadapter
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||