Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#72061 - [nginx][nginx-mainline] use syslog for error_log instead of logging to stderr

Attached to Project: Arch Linux
Opened by Daniel Micay (thestinger) - Tuesday, 07 September 2021, 11:59 GMT
Last edited by Andreas Radke (AndyRTR) - Saturday, 11 September 2021, 08:44 GMT
Task Type Feature Request
Category Packages: Extra
Status Assigned
Assigned To Giancarlo Razzolini (grazzolini)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 1
Private No

Details

Arch currently sets up using journald via stderr with the same log level for everything:

SyslogLevel=err

ExecStart=/usr/bin/nginx -g 'pid /run/nginx.pid; error_log stderr;'

It would be nicer to use the syslog support to set the severity and time metadata in a structured way.

Can remove SyslogLevel=err and change it to the following:

ExecStart=/usr/bin/nginx -g 'pid /run/nginx.pid; error_log syslog:server=unix:/dev/log,nohostname;'

The nohostname parameter should be used for local logging since it already has the hostname and there isn't a separate remote one.

http://nginx.org/en/docs/syslog.html
This task depends upon

Loading...