aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-05 15:54:48 +0300
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-05 15:54:48 +0300
commit063ad836a7e2a61192d3a6ca13b07114c4923c09 (patch)
tree2d4f27041cab5fca234a7dbaa93d71f9fd5f2133 /src/libserver/cfg_utils.c
parent2068591f5c63765cb3073058ef7074cf71f12a82 (diff)
downloadrspamd-063ad836a7e2a61192d3a6ca13b07114c4923c09.tar.gz
rspamd-063ad836a7e2a61192d3a6ca13b07114c4923c09.zip
Start variable log format support.
Diffstat (limited to 'src/libserver/cfg_utils.c')
-rw-r--r--src/libserver/cfg_utils.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index 1aae2c12d..bad00db8a 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -177,6 +177,12 @@ rspamd_config_defaults (struct rspamd_config *cfg)
cfg->min_word_len = DEFAULT_MIN_WORD;
cfg->dns_max_requests = 64;
cfg->history_rows = 200;
+
+ /* Default log line */
+ cfg->log_format_str = "id: <$mid>, $if_qid{qid: <$>,} $if_ip{ip: $,}"
+ "$if_ip{ip: $,} $if_from{from: <$>,} (default: $is_spam "
+ "($action): [$scores] [$symbols]), len: $len, time: $time_real real,"
+ " $time_virtual virtual, dns req: $dns_req";
}
void