Logging separate files on disk to stdout and stderr #3608
Closed
FoxxMD
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
While that might work. You are probably adding extra steps that are unnecessary. It would be better if you just log your nginx to stdout. Something like
I suggest using the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Building on Logging Files on Disk from the docs -- I wanted to output nginx logs, which logs separately to
access.log
anderror.log
, respectively to stdout and stderr. But the example in the docs wasn't enough to figure this out.Here's how to do this using docker-compose
The first log will be output to stdout, the second to stderr
Beta Was this translation helpful? Give feedback.
All reactions