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

how to remove log output #848

Open
deadspacewii opened this issue Jan 31, 2024 · 2 comments
Open

how to remove log output #848

deadspacewii opened this issue Jan 31, 2024 · 2 comments

Comments

@deadspacewii
Copy link
Contributor

how can I remove log output from canal,i will use my own log instead of canal's default log

@cameron-p-m
Copy link
Contributor

Something like this.

	cfg := canal.NewDefaultConfig()
	// disable embedded canal logs
	cfg.Logger = log.NewDefault(&log.NullHandler{})

@deadspacewii
Copy link
Contributor Author

Something like this.

	cfg := canal.NewDefaultConfig()
	// disable embedded canal logs
	cfg.Logger = log.NewDefault(&log.NullHandler{})

Thanks

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

2 participants