-
Notifications
You must be signed in to change notification settings - Fork 407
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
Forwarding Nginx logs to docker #111
Comments
Ahah below forwards the nginx logs to docker and is already enabled, thanks! But what about access logs? There is definitely nothing forwarding them to docker, and removing access_log from nging.conf doesn't cause it to start writing to stdout. All I've got so far is rails_12factor takes care of rails logging to docker because it outputs to stdout
|
Access logs aren't being forwarded right now. Maybe we should do that in the next version. |
I'd also like to see a recommended access logging strategy |
I'd like to know how to stop nginx access log forwarding (in development) |
Myself and @andrhamm are running into an issue where, with the logging set up like so: config.logger = ::Logger.new(STDOUT)
# Use default logging formatter so that PID and timestamp are not suppressed.
config.log_formatter = ::Logger::Formatter.new We end up with log messages like so:
That |
@jeffbyrnes It's coming from Passenger. This is currently non-configurable. |
@FooBarWidget thanks for confirming that. |
@FooBarWidget Is this logging ( |
For questions / remarks about Passenger features please refer to the Passenger community support forum or the Passenger issue list. The original question about log forwarding is answered, and I've split the enhancement request for access logging to #189. |
I see that the crond is running and logrotate is set up to rotate the nginx logs and thats all good but in a container shouldn't the logging be redirected to stdout and stderror?
I'm using the 12factor gem to redirect rails logs to stdout and stderr but what about the nginx logs?
I'm not sure but I think nginx also logs stderr of a subprocess to error.log
This is all very confusing and I think there should be some info about it in the README
I'm also trying this, any better ideas?
[EDIT]
There's also http://nginx.org/en/docs/ngx_core_module.html#error_log but I'm not seeing anything for access logs.
The text was updated successfully, but these errors were encountered: