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

Use JSON logging by default #34

Merged
merged 1 commit into from
Jun 5, 2022
Merged

Use JSON logging by default #34

merged 1 commit into from
Jun 5, 2022

Conversation

maltekrupa
Copy link
Owner

This change adds the option to choose which logging format you want to
use. The former unstructured log is still available but the new default
is a structured log in the form of JSON.

Exceptions still behave the same as before. Maybe some day they will
also be in JSON format.

Additionally, there is now a dedicated log line for every incoming
HTTP request.

The log line mentioning that a file will be scanned was set to debug
level to reduce the amount of useless logs in day2day opertions.

Closes #25.

This change adds the option to choose which logging format you want to
use. The former unstructured log is still available but the new default
is a structured log in the form of JSON.

Exceptions still behave the same as before. Maybe some day they will
also be in JSON format.

Additionally, there is now a dedicated log line for every incoming
HTTP request.

The log line mentioning that a file will be scanned was set to debug
level to reduce the amount of useless logs in day2day opertions.
@maltekrupa maltekrupa merged commit aa639de into main Jun 5, 2022
@maltekrupa maltekrupa deleted the json-logging branch June 5, 2022 09:10
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.

Add option for JSON logging
1 participant