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

Send logs to stderr and stdout #63

Closed
spyrospph opened this issue Jan 20, 2015 · 4 comments
Closed

Send logs to stderr and stdout #63

spyrospph opened this issue Jan 20, 2015 · 4 comments

Comments

@spyrospph
Copy link

Hi I am using the below to redirect logs to stderr and stdout but with no success.

RUN ln -sf /dev/stdout /var/log/fpm-access.log &&
ln -sf /dev/stdout /var/log/php5-fpm.log

Are you aware of the change that needs to be done in order to do this and benefit from docker logs command?

@thaJeztah
Copy link
Contributor

Isn't it already doing so?

https://github.com/docker-library/php/blob/master/5.6/fpm/php-fpm.conf

error_log = /proc/self/fd/2
daemonize = no

[www]

; if we send this to /proc/self/fd/1, it never appears
access.log = /proc/self/fd/2

@spyrospph
Copy link
Author

thx for the help @thaJeztah. You were absolutely right

@thaJeztah
Copy link
Contributor

You're welcome, I overlooked the /proc/self/fd/2 myself the first time I saw it :D

@thaJeztah
Copy link
Contributor

Think this is answered and can be closed

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

No branches or pull requests

3 participants