diff options
author | Omar Polo <op@omarpolo.com> | 2023-07-25 20:07:26 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2023-07-25 20:07:26 +0000 |
commit | abd261d25bdfa01c44d07a9803db669bc62ddf76 (patch) | |
tree | b7138101f8d0cb2b2fe64eea13c35f3b1a0a3a1b /gmid.h | |
parent | 2a28b0442431d06f1989c9c4861c442bca5c7dcf (diff) |
allow to change the logging style; introduce some new ones
add `log style <style>'; The old default is called `legacy' now, a
new default format is added called `condensed', and `common' and
`combined' to mimick Apache httpd and nginx (respectively) are also
added.
Diffstat (limited to 'gmid.h')
-rw-r--r-- | gmid.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -90,6 +90,13 @@ struct privsep; struct privsep_proc; +enum log_format { + LOG_FORMAT_CONDENSED, + LOG_FORMAT_COMMON, + LOG_FORMAT_COMBINED, + LOG_FORMAT_LEGACY, +}; + struct parser { char *iri; struct iri *parsed; @@ -242,6 +249,7 @@ struct conf { int prefork; int reload; char *log_access; + enum log_format log_format; int use_privsep_crypto; struct fcgihead fcgi; |