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 increase the log verbosity for a kafka plugin. #443

Open
michelescarlato opened this issue Apr 19, 2022 · 1 comment
Open

How to increase the log verbosity for a kafka plugin. #443

michelescarlato opened this issue Apr 19, 2022 · 1 comment
Assignees
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@michelescarlato
Copy link
Member

@mir-am , @gdrosos , @MagielBruntink
Hi Guys,

I would need to investigate an issue related to the Debian license feeder, and I was wondering if there is a way to increase the log verbosity (I am using DC).

Unluckily, several times I couldn't easily debug it.
It usually gives a:

[2022-04-19 07:54:30,823] [INFO ] [main] [e.f.s.p.k.FastenKafkaPlugin] - Read normal message offset 0 from partition 0.
[2022-04-19 07:54:30,979] [INFO ] [main] [e.f.a.d.DebianLicenseFeederPlugin$DebianLicenseFeederExtension] - License feeder started.
[2022-04-19 07:54:31,020] [INFO ] [main] [e.f.a.d.DebianLicenseFeederPlugin$DebianLicenseFeederExtension] - Package name:
libgda5
[2022-04-19 07:54:31,040] [INFO ] [main] [e.f.a.d.DebianLicenseFeederPlugin$DebianLicenseFeederExtension] - Package version:
5.2.8-1
[2022-04-19 07:54:31,042] [INFO ] [main] [e.f.a.d.DebianLicenseFeederPlugin$DebianLicenseFeederExtension] - Package name: libgda5.
[2022-04-19 07:54:31,042] [INFO ] [main] [e.f.a.d.DebianLicenseFeederPlugin$DebianLicenseFeederExtension] - Package version: 5.2.8-1.
[2022-04-19 07:54:31,225] [INFO ] [main] [e.f.a.d.DebianLicenseFeederPlugin$DebianLicenseFeederExtension] - About to insert outbound licenses...
[2022-04-19 07:54:31,518] [ERROR] [main] [e.f.a.d.DebianLicenseFeederPlugin$DebianLicenseFeederExtension] - null
[2022-04-19 07:54:31,519] [INFO ] [main] [e.f.s.p.k.FastenKafkaPlugin] - Successfully processed normal message offset 0 from partition 0.
[2022-04-19 07:54:31,524] [INFO ] [main] [e.f.s.p.k.FastenKafkaPlugin] - Committed offsets [0] of partitions [0].

And I need to write several System.out.println to better understand where it gets stuck (in this case seems an error related to the insertOutboundLicense function, but I would like to have more details).

Thanks for your time.

@michelescarlato michelescarlato added help wanted Extra attention is needed question Further information is requested labels Apr 19, 2022
@michelescarlato michelescarlato self-assigned this Apr 19, 2022
@proksch
Copy link
Contributor

proksch commented May 19, 2022

What I do in the new data processing repo is to 1) enforce slf4j logging (you need to add bridges in the dependencies and 2) use custom LoggingUtils to set the verbosity... this sets the same level for everything though.

You can also play around with custom logger settings, which you normally have to put into a correctly named xml file as a resource, but I do not remember which logging framework Kafka is using (and the file name and its options depend on the framework).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants