summaryrefslogtreecommitdiffstats
path: root/src/Logger.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Logger.h')
-rw-r--r--src/Logger.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/Logger.h b/src/Logger.h
index b4bf97cd6..14c02d825 100644
--- a/src/Logger.h
+++ b/src/Logger.h
@@ -58,7 +58,13 @@ public:
cAttachment(cListener * a_listener) : m_listener(a_listener) {}
};
- void Log (const char * a_Format, eLogLevel a_LogLevel, va_list a_ArgList) FORMATSTRING(2, 0);
+ /** Log a message formatted with a printf style formatting string. */
+ void LogPrintf(const char * a_Format, eLogLevel a_LogLevel, fmt::ArgList a_ArgList);
+ FMT_VARIADIC(void, LogPrintf, const char *, eLogLevel)
+
+ /** Log a message formatted with a python style formatting string. */
+ void LogFormat(const char * a_Format, eLogLevel a_LogLevel, fmt::ArgList a_ArgList);
+ FMT_VARIADIC(void, LogFormat, const char *, eLogLevel)
/** Logs the simple text message at the specified log level. */
void LogSimple(AString a_Message, eLogLevel a_LogLevel = llRegular);
@@ -79,12 +85,3 @@ private:
-
-// These declarations are duplicated in globals.h
-extern void LOG (const char * a_Format, ...) FORMATSTRING(1, 2);
-extern void LOGINFO (const char * a_Format, ...) FORMATSTRING(1, 2);
-extern void LOGWARNING(const char * a_Format, ...) FORMATSTRING(1, 2);
-extern void LOGERROR (const char * a_Format, ...) FORMATSTRING(1, 2);
-
-
-