Skip to content

[feature request] Add option to log errors to file instead of stdout #1397

Answered by Zoey2936
yurividal asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Zoey2936
Comment options

You must be logged in to vote
1 reply
@Zoey2936
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1388 on January 15, 2025 21:34.