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

expose custom logger #170

Closed
taylorchu opened this issue Oct 3, 2017 · 3 comments
Closed

expose custom logger #170

taylorchu opened this issue Oct 3, 2017 · 3 comments

Comments

@taylorchu
Copy link
Contributor

In canal, the log output is not structured.

In #167, the idea of custom logger is briefly discussed. We would like to use logger from logrus for example to be able to post-process structured logs easily.

@siddontang
Copy link
Collaborator

Yes, @taylorchu

Can you send me a PR? Maybe we can pass the logrus Logger to go-mysql. if not set, we can use the default standard logger.

@dveeden
Copy link
Collaborator

dveeden commented Mar 10, 2025

With #993 merged I think we should probably also close this now that we use log/slog.

@serprex @lance6716 do you agree?

@lance6716
Copy link
Collaborator

I agree that we can close this issue. Please refer to the Logging section in README

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

No branches or pull requests

4 participants