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

Docker: Log to json, fixes multiline logging in Docker #1337

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

quartje
Copy link
Contributor

@quartje quartje commented Nov 8, 2024

Since Docker logs to stdout, the ident to distinguish between the authentication and application logs is no longer applicable.
Furthermore, logging using the regular formatters lead to all logs landing in a single line, making it hard to read and distinguish. It also hits the 16KB logline length of Docker
Using the syslog formatter fixes those issues.

@quartje quartje requested a review from thijskh November 8, 2024 14:21
@thijskh
Copy link
Member

thijskh commented Nov 8, 2024

Is the information added by the AdditionalInfoFormatter also preserved in the JSON?

@quartje quartje force-pushed the feature/docker_json_logging branch from dd7e67b to b855f04 Compare November 8, 2024 15:13
Copy link
Member

@thijskh thijskh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test showed that after this change the additional info is indeed still present

@quartje quartje merged commit 5cda100 into main Nov 12, 2024
2 checks passed
@quartje quartje deleted the feature/docker_json_logging branch November 12, 2024 19:32
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.

2 participants