Skip to content

Latest commit

 

History

History

zerologadapter

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

SQLDB-LOGGER ZEROLOG ADAPTER

stdout sample

logger := zerolog.New(os.Stdout)
// populate log pre-fields here before set to
db := sqldblogger.OpenDriver(
    dsn,
    &mysql.MySQLDriver{},
    zerologadapter.New(logger),
    // optional config...
)