-
Notifications
You must be signed in to change notification settings - Fork 216
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
Logging to /dev/stdout and to file at the same time. #252
Comments
I don't think there's an easy way to do it using Example DockerfileFROM ubuntu:16.04
ADD https://github.com/just-containers/s6-overlay/releases/download/v1.21.8.0/s6-overlay-amd64.tar.gz /tmp/
RUN tar xzf /tmp/s6-overlay-amd64.tar.gz -C /
COPY root /
ENTRYPOINT ["/init"] Contents of
|
Thank you for the detailed response, it worked! |
Any plans to add an option, or environment variable, to allow logutil-service to abstract this configuration? |
|
Got it. Now I understand, to retain the behavior described above, I suppose I would have to set:
Is this correct? |
Something like that, yes. :-) |
Thanks a lot! |
Hello,
Is it possible to log to /dev/stdout and the same time to a file in /var/log directory? I tried to redirect all longs to /dev/stdout, and I can actually see the logs as output in docker, but not in a file. Then I read the documentation, and used the logutil-service by creating a file called log/run. Now it redirected all outputs from screen to the file in /var/log/*/current file.
I'd like to set it up where I see the outputs on screen, and also in file.
Thanks,
Mark
The text was updated successfully, but these errors were encountered: