diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-10-21 18:47:42 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-10-21 18:47:42 +0200 |
commit | 1360acec0ad064334c90c6ea770d648060c450d4 (patch) | |
tree | 6f7461072f3d1b77632bf88ac8309a5562182eac /libdaemon/dlog.h | |
parent | ce931b0a5e1a6a4045d7c30c5d877488907dc87d (diff) | |
parent | 7067029368ab389b92f5a7329899188d47f191ba (diff) |
Merge commit 'flameeyes/verbosity'
Diffstat (limited to 'libdaemon/dlog.h')
-rw-r--r-- | libdaemon/dlog.h | 14 |
1 files changed, 14 insertions, 0 deletions
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 |