-
Is it possible to please add an option to log errors to errors.log instead of to the container logs? even better would be if it could log to both. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
you can configure this youself, see: https://nginx.org/en/docs/ngx_core_module.html#error_log |
Beta Was this translation helpful? Give feedback.
-
Thank you. this works. I have also tried to add the following lines to this file, but it crashes npm-plus.
I get an error saying that these directives are duplicate, but i wansn't able to see where exactly they are being set. |
Beta Was this translation helpful? Give feedback.
you can configure this youself, see: https://nginx.org/en/docs/ngx_core_module.html#error_log
you can put it into this file /opt/npm/custom_nginx/root_top.conf (/data/custom_nginx/root_top.conf inside the container)
for example you could put:
error_log /data/nginx/error.log warn;
, which would log the same as written to console, but you can also use any other error level you want