summaryrefslogtreecommitdiff
path: root/src/plugins/logger/logger-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/logger/logger-config.c')
-rw-r--r--src/plugins/logger/logger-config.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/plugins/logger/logger-config.c b/src/plugins/logger/logger-config.c
index 91683f2b8..1b5dd5c97 100644
--- a/src/plugins/logger/logger-config.c
+++ b/src/plugins/logger/logger-config.c
@@ -58,6 +58,7 @@ struct t_config_option *logger_config_file_color_lines = NULL;
struct t_config_option *logger_config_file_flush_delay = NULL;
struct t_config_option *logger_config_file_fsync = NULL;
struct t_config_option *logger_config_file_info_lines = NULL;
+struct t_config_option *logger_config_file_log_conditions = NULL;
struct t_config_option *logger_config_file_mask = NULL;
struct t_config_option *logger_config_file_name_lower_case = NULL;
struct t_config_option *logger_config_file_nick_prefix = NULL;
@@ -579,6 +580,16 @@ logger_config_init ()
"a buffer"),
NULL, 0, 0, "off", NULL, 0,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
+ logger_config_file_log_conditions = weechat_config_new_option (
+ logger_config_file, logger_config_section_file,
+ "log_conditions", "string",
+ N_("conditions to save content of buffers to files "
+ "(note: content is evaluated, see /help eval); "
+ "empty value saves content on all buffers; "
+ "for example to log only private buffers: "
+ "\"${type} == private\""),
+ NULL, 0, 0, "", NULL, 0,
+ NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
logger_config_file_mask = weechat_config_new_option (
logger_config_file, logger_config_section_file,
"mask", "string",