From 330626ab22fe2e87afa5306c5f4039088c41b49e Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Mon, 4 May 2020 19:21:48 +0100 Subject: Update submodules --- src/Logger.h | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'src/Logger.h') diff --git a/src/Logger.h b/src/Logger.h index ef86b3313..fee2554be 100644 --- a/src/Logger.h +++ b/src/Logger.h @@ -50,14 +50,10 @@ public: }; /** Log a message formatted with a printf style formatting string. */ - void LogPrintf( - std::string_view a_Format, eLogLevel a_LogLevel, fmt::printf_args a_ArgList - ); + void LogPrintf(std::string_view a_Format, eLogLevel a_LogLevel, fmt::printf_args a_ArgList); /** Log a message formatted with a python style formatting string. */ - void LogFormat( - std::string_view a_Format, eLogLevel a_LogLevel, fmt::format_args a_ArgList - ); + void LogFormat(std::string_view a_Format, eLogLevel a_LogLevel, fmt::format_args a_ArgList); /** Logs the simple text message at the specified log level. */ void LogSimple(std::string_view a_Message, eLogLevel a_LogLevel = eLogLevel::Regular); @@ -65,8 +61,10 @@ public: cAttachment AttachListener(std::unique_ptr a_Listener); static cLogger & GetInstance(void); + // Must be called before calling GetInstance in a multithreaded context static void InitiateMultithreading(); + private: cCriticalSection m_CriticalSection; @@ -74,8 +72,4 @@ private: void DetachListener(cListener * a_Listener); void LogLine(std::string_view a_Line, eLogLevel a_LogLevel); - }; - - - -- cgit v1.2.3