custom log format

This commit is contained in:
bunkerity
2020-12-02 16:46:54 +01:00
parent 8f9dcc5ab8
commit 2112c306a8
3 changed files with 6 additions and 1 deletions

View File

@@ -48,7 +48,8 @@ http {
default_type application/octet-stream;
# write logs to local syslog
access_log syslog:server=unix:/dev/log,nohostname,facility=local0,severity=notice combined;
log_format logf '%LOG_FORMAT%';
access_log syslog:server=unix:/dev/log,nohostname,facility=local0,severity=notice logf;
error_log syslog:server=unix:/dev/log,nohostname,facility=local0 warn;
# temp paths