DEF(SET_STR, debug_log_path),
DEF(SET_STR, log_timestamp),
DEF(SET_STR, log_debug),
+ DEF(SET_STR, log_core_filter),
DEF(SET_STR, syslog_facility),
DEF(SET_STR, import_environment),
DEF(SET_STR, stats_writer_socket_path),
.debug_log_path = "",
.log_timestamp = DEFAULT_FAILURE_STAMP_FORMAT,
.log_debug = "",
+ .log_core_filter = "",
.syslog_facility = "mail",
.import_environment = "TZ CORE_OUTOFMEM CORE_ERROR" ENV_SYSTEMD ENV_GDB,
.stats_writer_socket_path = "stats-writer",
#endif
event_filter_unref(&filter);
}
+
+ if (!log_filter_parse("log_core_filter", set->log_core_filter,
+ &filter, error_r))
+ return FALSE;
+ if (filter != NULL) {
+#ifndef CONFIG_BINARY
+ event_set_global_core_log_filter(filter);
+#endif
+ event_filter_unref(&filter);
+ }
return TRUE;
}
/* </settings checks> */
const char *debug_log_path;
const char *log_timestamp;
const char *log_debug;
+ const char *log_core_filter;
const char *syslog_facility;
const char *import_environment;
const char *stats_writer_socket_path;