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

Allow to override root log level #81

Merged

Conversation

dtrsan
Copy link
Member

@dtrsan dtrsan commented Jun 19, 2020

Allow to override root log level via JAVA_OPTS.

@regispl
Copy link

regispl commented Jun 19, 2020

👍

1 similar comment
@dtrsan
Copy link
Member Author

dtrsan commented Jun 19, 2020

👍

@brendanmaguire
Copy link
Contributor

👍

@OneCricketeer
Copy link
Contributor

OneCricketeer commented Jun 19, 2020

Sorry, but why is this needed?

You can always just provide your own file docker run -v config.xml:/path/to/config.xml. You don't need a separate variable, since logback already has one

-Dlogback.configurationFile=/path/to/config.xml

Or you can extend this image and COPY in your own file

@dtrsan
Copy link
Member Author

dtrsan commented Jun 20, 2020

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.

@dtrsan
Copy link
Member Author

dtrsan commented Jun 22, 2020

👍

@dtrsan
Copy link
Member Author

dtrsan commented Jun 22, 2020

👍

1 similar comment
@regispl
Copy link

regispl commented Jun 22, 2020

👍

@javierarrieta javierarrieta merged commit da569c8 into zalando-incubator:master Jun 22, 2020
@OneCricketeer
Copy link
Contributor

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?

@dtrsan
Copy link
Member Author

dtrsan commented Jun 23, 2020

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.

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.

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?

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.

@OneCricketeer
Copy link
Contributor

Well, as I commented there, and here, the file can be overwritten, at ones own discretion.

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.

5 participants