Closed toplinuxsir closed 8 years ago
Unfortunately, strong-pm does not currently support this. All logs from strong-pm and apps deployed to it are combined.
What level of customization are you looking for?
Save the HTTP access log and error log (such as exceptions raised by strongloop )
@toplinuxsir do you mean strong-pm's access and errors? Or the deployed applications' access and error logs?
Since strong-pm itself has not visibility into http access and errors of the app, or even whether it is http based, I think the best we could do for this scenario is log the application's stdout and stderr to separate files and document this as an option for simple log differentiation.
@rmg It's the The deployed application's access and error logs It's better to support log file rotate
@toplinuxsir strong-pm doesn't log access logs, use a tool like https://github.com/expressjs/morgan to write HTTP access logs.
@Sam Roberts I got it , Thanks !
2015-12-09 6:31 GMT+08:00 Sam Roberts notifications@github.com:
@toplinuxsir https://github.com/toplinuxsir strong-pm doesn't log access logs, use a tool like https://github.com/expressjs/morgan to write HTTP access logs.
— Reply to this email directly or view it on GitHub https://github.com/strongloop/strong-pm/issues/296#issuecomment-163040275 .
If I deployed an app in strong-pm , I want to store the access log into the specified file , just like nginx's access log in /var/log/nginx/access.log
How to ? Thanks !