aboutsummaryrefslogtreecommitdiff
path: root/gmid.h
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-07-25 20:07:26 +0000
committerOmar Polo <op@omarpolo.com>2023-07-25 20:07:26 +0000
commitabd261d25bdfa01c44d07a9803db669bc62ddf76 (patch)
treeb7138101f8d0cb2b2fe64eea13c35f3b1a0a3a1b /gmid.h
parent2a28b0442431d06f1989c9c4861c442bca5c7dcf (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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gmid.h b/gmid.h
index 734ad54..e1805b4 100644
--- a/gmid.h
+++ b/gmid.h
@@ -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;