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

Refactor logging for more granularity #35

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

Dunedan
Copy link
Collaborator

@Dunedan Dunedan commented Apr 12, 2024

This changes the use of the logger used for logging by the bots from the root logger to a module specific logger, which provides more flexibility in terms of configuration.

It also changes the command line options of the bots to configure the verbosity of logging. This allows introducing an additional verbosity level which uses debug logging for the bots themselves, but doesn't do the same for third-party libraries used by them. This helps reducing often undesired high-volume debug logs by libraries like Slixmpp, while still generating debug logs for our custom code.

This changes the use of the logger used for logging by the bots from the
root logger to a module specific logger, which provides more flexibility
in terms of configuration.

It also changes the command line options of the bots to configure
the verbosity of logging. This allows introducing an additional
verbosity level which uses debug logging for the bots themselves, but
doesn't do the same for third-party libraries used by them. This helps
reducing often undesired high-volume debug logs by libraries like
Slixmpp, while still generating debug logs for our custom code.
@Dunedan Dunedan merged commit f504709 into 0ad:master Apr 18, 2024
3 checks passed
@Dunedan Dunedan deleted the refactor-logging branch April 18, 2024 14:17
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

Successfully merging this pull request may close these issues.

1 participant