From 9fd1249bbef0712047140c81a57c34b4043a8136 Mon Sep 17 00:00:00 2001 From: Diego 'Flameeyes' Pettenò Date: Wed, 1 Oct 2008 21:15:46 +0200 Subject: Add support for setting verbosity level for stdout/stderr output. --- libdaemon/dlog.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'libdaemon/dlog.h') diff --git a/libdaemon/dlog.h b/libdaemon/dlog.h index 814171f..9755df6 100644 --- a/libdaemon/dlog.h +++ b/libdaemon/dlog.h @@ -81,6 +81,20 @@ void daemon_logv(int prio, const char* t, va_list ap); */ char *daemon_ident_from_argv0(char *argv0); +/** + * @brief Setter for the verbosity level of standard output. + * + * @param verbose_level Minimum priority level for messages to output + * on standard output/error + * + * Allows to decide which messages to output on standard output/error + * streams. All messages are logged to syslog and this setting does + * not influence that. + * + * The default value is LOG_WARNING. + */ +void daemon_set_verbosity(int verbosity_prio); + #ifdef __cplusplus } #endif -- cgit