diff options
Diffstat (limited to '')
-rw-r--r-- | src/Log.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Log.cxx b/src/Log.cxx index f36e68133..a46c0ced8 100644 --- a/src/Log.cxx +++ b/src/Log.cxx @@ -51,6 +51,9 @@ ToGLib(LogLevel level) return G_LOG_LEVEL_DEBUG; case LogLevel::INFO: + return G_LOG_LEVEL_INFO; + + case LogLevel::DEFAULT: return G_LOG_LEVEL_MESSAGE; case LogLevel::WARNING: @@ -102,6 +105,15 @@ FormatInfo(const Domain &domain, const char *fmt, ...) } void +FormatDefault(const Domain &domain, const char *fmt, ...) +{ + va_list ap; + va_start(ap, fmt); + LogFormatV(domain, LogLevel::DEFAULT, fmt, ap); + va_end(ap); +} + +void FormatWarning(const Domain &domain, const char *fmt, ...) { va_list ap; |