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

Possibility to add external log file #2704

Closed
AbDhops opened this issue Jan 24, 2022 · 2 comments
Closed

Possibility to add external log file #2704

AbDhops opened this issue Jan 24, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@AbDhops
Copy link

AbDhops commented Jan 24, 2022

Describe what you are trying to accomplish and why in non technical terms
I am using docker compose installation. All is good. However, every time I have to see the log, I must see the docker container log. There shall be the possibility to store the log in the log file. If this happens, we can store the log file external to the container, which is easy to share / maintain.

Describe the solution you'd like
Log shall not be only send to stderr (Standard screen) but shall be also routed to log file (configurable location)

Describe alternatives you've considered
As the logs are not stored there are no alternatives.

Additional context
N/A

@AbDhops AbDhops added the enhancement New feature or request label Jan 24, 2022
@blakeblackshear
Copy link
Owner

You can use a docker log driver to change the location of the stored logs: https://docs.docker.com/config/containers/logging/configure/

It is a best practice for docker containers to log to stdout and let docker handle log destinations.

@AbDhops
Copy link
Author

AbDhops commented Feb 2, 2022

okay.. I thought like other containers, here also its possible to mount the external log file, without adding special options.
I will close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants