Skip to content

Latest commit

 

History

History

onelogadapter

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

SQLDB-LOGGER ONELOG ADAPTER

stdout sample

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...
)