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

Feture request: logger with different levels #1281

Open
iSerganov opened this issue Apr 23, 2024 · 1 comment
Open

Feture request: logger with different levels #1281

iSerganov opened this issue Apr 23, 2024 · 1 comment

Comments

@iSerganov
Copy link

As far as I can see from the README, for the moment there is only an option to provide a logger implementation that will log all internal messages of the library.

It would be very nice to have different levels of log messages, e.g.:

  • Error
  • Warn
  • Info
  • Debug

That will allow the caller code to choose the desirable amount of logged data depending on their need.

@isaacd9
Copy link

isaacd9 commented Apr 24, 2024

The Reader and Writer have both a Logger (for Info level logs) and an ErrorLogger for more serious errors: https://pkg.go.dev/github.com/segmentio/kafka-go#LoggerFunc

What messages do you think should be logged at Warn or Debug OOC?

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

No branches or pull requests

2 participants