summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Logging/LogManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common/Logging/LogManager.cpp')
-rw-r--r--Source/Core/Common/Logging/LogManager.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/Core/Common/Logging/LogManager.cpp b/Source/Core/Common/Logging/LogManager.cpp
index a7b0b010ea..bed3a183e4 100644
--- a/Source/Core/Common/Logging/LogManager.cpp
+++ b/Source/Core/Common/Logging/LogManager.cpp
@@ -80,6 +80,22 @@ void GenericLog(LogLevel level, LogType type, const char* file, int line, const
instance->Log(level, type, file, line, message);
}
+void GenericLogV(LogLevel level, LogType type, const char* file, int line, const char* fmt,
+ va_list args)
+{
+ auto* instance = LogManager::GetInstance();
+ if (instance == nullptr)
+ return;
+
+ if (!instance->IsEnabled(type, level))
+ return;
+
+ char message[MAX_MSGLEN];
+ CharArrayFromFormatV(message, MAX_MSGLEN, fmt, args);
+
+ instance->Log(level, type, file, line, message);
+}
+
void GenericLogFmtImpl(LogLevel level, LogType type, const char* file, int line,
fmt::string_view format, const fmt::format_args& args)
{