diff options
Diffstat (limited to 'src/common/Logging')
-rw-r--r-- | src/common/Logging/Log.cpp | 6 | ||||
-rw-r--r-- | src/common/Logging/Log.h | 6 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/common/Logging/Log.cpp b/src/common/Logging/Log.cpp index a80a4671822..de2c02bf2ed 100644 --- a/src/common/Logging/Log.cpp +++ b/src/common/Logging/Log.cpp @@ -320,6 +320,12 @@ void Log::Close() appenders.clear(); } +Log* Log::instance() +{ + static Log instance; + return &instance; +} + void Log::Initialize(boost::asio::io_service* ioService) { if (ioService) diff --git a/src/common/Logging/Log.h b/src/common/Logging/Log.h index a90481ad5d2..6f9c5600775 100644 --- a/src/common/Logging/Log.h +++ b/src/common/Logging/Log.h @@ -44,11 +44,7 @@ class Log public: - static Log* instance() - { - static Log instance; - return &instance; - } + static Log* instance(); void Initialize(boost::asio::io_service* ioService); void LoadFromConfig(); |