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