From 2766f2ab095728665cd7267ea2157412a36c94e3 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sun, 9 Oct 2022 00:13:23 +0200 Subject: [PATCH] Expose CLAP logger verbosity --- src/common/logging/clap.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/common/logging/clap.h b/src/common/logging/clap.h index e16cfe51..aa3357bc 100644 --- a/src/common/logging/clap.h +++ b/src/common/logging/clap.h @@ -35,6 +35,14 @@ class ClapLogger { */ inline void log(const std::string& message) { logger_.log(message); } + /** + * Used to filter misbehavior messages in the CLAP log extension + * implementation. + * + * @see Logger::verbosity + */ + inline Logger::Verbosity verbosity() { return logger_.verbosity_; } + /** * Log calls to `clap_plugin::get_extension()` and * `clap_host::get_extension()`. This makes it possible to tell which