diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-10-30 15:32:35 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-10-30 15:32:35 +0000 |
commit | bae5cd020f84fbf84cbbe446f0726287604f150a (patch) | |
tree | 0ab0f64ee5e71acb51028a858005f1636c6e85f9 /src/libserver/cfg_file.h | |
parent | 81412f8b22d364ae94820fb368f669dabf5d4b94 (diff) | |
download | rspamd-bae5cd020f84fbf84cbbe446f0726287604f150a.tar.gz rspamd-bae5cd020f84fbf84cbbe446f0726287604f150a.zip |
[Project] Preliminary support of JSON logging
Diffstat (limited to 'src/libserver/cfg_file.h')
-rw-r--r-- | src/libserver/cfg_file.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/libserver/cfg_file.h b/src/libserver/cfg_file.h index 4e432af60..22f754938 100644 --- a/src/libserver/cfg_file.h +++ b/src/libserver/cfg_file.h @@ -59,14 +59,15 @@ enum rspamd_log_type { }; enum rspamd_log_cfg_flags { - RSPAMD_LOG_FLAG_DEFAULT = 0, - RSPAMD_LOG_FLAG_SYSTEMD = (1 << 0), - RSPAMD_LOG_FLAG_COLOR = (1 << 1), - RSPAMD_LOG_FLAG_RE_CACHE = (1 << 2), - RSPAMD_LOG_FLAG_USEC = (1 << 3), - RSPAMD_LOG_FLAG_RSPAMADM = (1 << 4), - RSPAMD_LOG_FLAG_ENFORCED = (1 << 5), - RSPAMD_LOG_FLAG_SEVERITY = (1 << 6), + RSPAMD_LOG_FLAG_DEFAULT = 0u, + RSPAMD_LOG_FLAG_SYSTEMD = (1u << 0u), + RSPAMD_LOG_FLAG_COLOR = (1u << 1u), + RSPAMD_LOG_FLAG_RE_CACHE = (1u << 2u), + RSPAMD_LOG_FLAG_USEC = (1u << 3u), + RSPAMD_LOG_FLAG_RSPAMADM = (1u << 4u), + RSPAMD_LOG_FLAG_ENFORCED = (1u << 5u), + RSPAMD_LOG_FLAG_SEVERITY = (1u << 6u), + RSPAMD_LOG_FLAG_JSON = (1u << 7u), }; struct rspamd_worker_log_pipe { |