X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fplugin.h;h=0f35de5615b9357b616b1bbb60d9a1b7c069f894;hb=6d85a198dd90fb5af963ad847d9dbff7b8025c46;hp=3f2d98cb057957bc30224a057598244a22cfccac;hpb=9cb2694409620ae217ede92f78fe45c9eba83504;p=collectd.git diff --git a/src/plugin.h b/src/plugin.h index 3f2d98cb..0f35de56 100644 --- a/src/plugin.h +++ b/src/plugin.h @@ -335,6 +335,10 @@ int plugin_dispatch_notification (const notification_t *notif); void plugin_log (int level, const char *format, ...) __attribute__ ((format(printf,2,3))); +/* These functions return the parsed severity or less than zero on failure. */ +int parse_log_severity (const char *severity); +int parse_notif_severity (const char *severity); + #define ERROR(...) plugin_log (LOG_ERR, __VA_ARGS__) #define WARNING(...) plugin_log (LOG_WARNING, __VA_ARGS__) #define NOTICE(...) plugin_log (LOG_NOTICE, __VA_ARGS__)