diff options
Diffstat (limited to 'zencore/logging.cpp')
| -rw-r--r-- | zencore/logging.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/zencore/logging.cpp b/zencore/logging.cpp index c5c0b6446..a6423e2dc 100644 --- a/zencore/logging.cpp +++ b/zencore/logging.cpp @@ -55,6 +55,20 @@ ConsoleLog() return *ConLogger; } +std::shared_ptr<spdlog::logger> TheErrorLogger; + +spdlog::logger* +ErrorLog() +{ + return TheErrorLogger.get(); +} + +void +SetErrorLog(std::shared_ptr<spdlog::logger>&& NewErrorLogger) +{ + TheErrorLogger = std::move(NewErrorLogger); +} + void InitializeLogging() { |