Implement severity suppression in log streams; other minor fixes.
* include/mailutils/stream.h (MU_LOGSTREAM_ADVANCE_LOCUS_LINE) (MU_LOGSTREAM_ADVANCE_LOCUS_COL): Rename to MU_IOCTL_.*. All uses updated. (MU_IOCTL_LOGSTREAM_SUPPRESS_SEVERITY) (MU_IOCTL_LOGSTREAM_SUPPRESS_SEVERITY_NAME): New ioctls. * include/mailutils/sys/logstream.h (_mu_log_stream)<threshold>: New member. * include/mailutils/syslog.h (mu_log_severity_threshold): New extern. * libmailutils/cfg/parser.y (_cfg_default_printer): Remove leftover static function. * libmailutils/stream/logstream.c (mu_severity_from_string) (mu_severity_to_string): New functions. (_log_write): Fix double free. Implement severity suppression. (_log_ioctl): Handle MU_IOCTL_LOGSTREAM_SUPPRESS_SEVERITY. * libmu_cfg/common.c (mu_logging_param): New parameter "severity".
Showing
9 changed files
with
108 additions
and
27 deletions
-
Please register or sign in to post a comment