-
Notifications
You must be signed in to change notification settings - Fork 30
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
Allow to override root log level #81
Allow to override root log level #81
Conversation
👍 |
1 similar comment
👍 |
👍 |
Sorry, but why is this needed? You can always just provide your own file
Or you can extend this image and |
Yes, I can extend the image but this is exactly what I'm trying to avoid. It adds additional complexity to the deployment pipeline. I think extending the image shouldn't be necessary when you just need to silence debug/info logging. |
👍 |
👍 |
1 similar comment
👍 |
You only responded to extending the image, which I agree adds complexity, but most companies maintain their own internal registries anyway, full of extended images that alter usernames, install certifcates, etc. Still, what about mounting a volume for the file? Most companies also have specific logging frameworks that need to collect different log formats (JSON logging, for example)... Why not make the format a variable as well? |
I agree with all you said. It is also possible to let agents to filter out the logs or define to filter out the logs on the service side during ingestion. There are multiple approaches, each one with their own pros/cons.
Mounting a volume is also an option but also it comes with an extra complexity. In my case this complexity is much higher than just extending the image. Re specific logging format, I can't find any reason why not to do it. Issue #73 mentions this so maybe we should move this conversation there? Let me know what exactly do you have in mind and I'll see what I can do. |
Well, as I commented there, and here, the file can be overwritten, at ones own discretion. |
Allow to override root log level via
JAVA_OPTS
.