Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow sqlutils clients to register their own loggers. #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kamil-holubicki
Copy link

Problem:
sqlutils emits error logs directly through log.Errore() calls. These logs contain only basic information like query, but are missing the caller context (who in which contexts executes the particular query)

Solution:
Allow registering client side logger which will be used instead of internal logging. Client-side logger can add context information to logs and format logs in the desired way.

Problem:
sqlutils emits error logs directly through log.Errore() calls.
These logs contain only basic information like query, but are missing
the caller context (who in which contexts executes the particular query)

Solution:
Allow registering client side logger which will be used instead of
internal logging. Client-side logger can add context information to
logs and format logs in the desired way.
@shlomi-noach
Copy link

Thank you! I'm in a bit of a sabbatical from maintaining my personal OSS projects, so with regrets I won't be reviewing/merging this, even though the change is likely good and trivial, and I do appreciate your time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants