From 92dd194c97b51c323c38b0fa79c31036153a7d1b Mon Sep 17 00:00:00 2001 From: Zyx-2000 Date: Tue, 26 Jan 2016 22:42:15 +0100 Subject: [PATCH] logger now supports unicode file paths --- lib/logging/CLogger.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/logging/CLogger.h b/lib/logging/CLogger.h index e4ceaf866..2318cf4f3 100644 --- a/lib/logging/CLogger.h +++ b/lib/logging/CLogger.h @@ -12,6 +12,7 @@ #pragma once #include "../CConsoleHandler.h" +#include "../filesystem/FileStream.h" class CLogger; struct LogRecord; @@ -147,7 +148,7 @@ private: /// Macros for tracing the control flow of the application conveniently. If the LOG_TRACE macro is used it should be /// the first statement in the function. Logging traces via this macro have almost no impact when the trace is disabled. -/// +/// #define RAII_TRACE(logger, onEntry, onLeave) \ std::unique_ptr ctl00; \ if(logger->isTraceEnabled()) \ @@ -217,7 +218,7 @@ public: CLogFormatter(CLogFormatter && move); CLogFormatter(const std::string & pattern); - + CLogFormatter & operator=(const CLogFormatter & copy); CLogFormatter & operator=(CLogFormatter && move); @@ -302,7 +303,7 @@ public: void write(const LogRecord & record) override; private: - boost::filesystem::ofstream file; + FileStream file; CLogFormatter formatter; mutable boost::mutex mx; };