Skip to content

How to enable query logging in bob #299

Answered by daddz
iggydv asked this question in Q&A
Discussion options

You must be logged in to vote

You could also use a database/sql wrapper like https://github.com/simukti/sqldb-logger

sqlDB = sqldblogger.OpenDriver(...)
db := bob.NewDB(sqlDB)

or if you use a different driver it may have something in store for you like e.g. https://github.com/jackc/pgx with https://pkg.go.dev/github.com/jackc/pgx/v5#hdr-Tracing_and_Logging

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by stephenafamo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants