Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Renderton + nginx + error_log #300

Closed
nd093 opened this issue Jul 29, 2019 · 1 comment
Closed

Renderton + nginx + error_log #300

nd093 opened this issue Jul 29, 2019 · 1 comment

Comments

@nd093
Copy link

nd093 commented Jul 29, 2019

Hello,
Thank you in advance for for your help!

I have implemented renderton with nginx server.
What I need is to log errors only generated from rendertron server.
Any suggestion ?
Please let me know if more information needed.
Thank you

@AVGP
Copy link
Collaborator

AVGP commented Aug 29, 2019

Hey @nd093 - how are you running Rendertron? It logs errors to its STDERR.

You can redirect the error logging to a file. For example:

cd rendertron
mkdir -p /var/log/rendertron
npm run 1> /var/log/rendertron/info.log 2> /var/log/rendertron/error.log

This will write info messages (e.g. the requests made to your Rendertron instance) to /var/log/rendertron/info.log and errors to /var/log/rendertron/error.log

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants