diff options
| author | Stefan Boberg <[email protected]> | 2026-02-16 15:37:13 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2026-02-16 15:37:13 +0100 |
| commit | 74a5e2fb8dec43682e81a98c9677aef849ca7cc1 (patch) | |
| tree | 295fddb6b008be9f9012acca069d9c18727439a5 /src/zencore/logging.cpp | |
| parent | add foundation for http password protection (#756) (diff) | |
| download | zen-74a5e2fb8dec43682e81a98c9677aef849ca7cc1.tar.xz zen-74a5e2fb8dec43682e81a98c9677aef849ca7cc1.zip | |
added ResetConsoleLog (#758)
also made sure log initialization calls it to ensure the console output format is retained even if the console logger was set up before logging is initialized
Diffstat (limited to 'src/zencore/logging.cpp')
| -rw-r--r-- | src/zencore/logging.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/zencore/logging.cpp b/src/zencore/logging.cpp index a6697c443..77e05a909 100644 --- a/src/zencore/logging.cpp +++ b/src/zencore/logging.cpp @@ -405,6 +405,14 @@ ConsoleLog() } void +ResetConsoleLog() +{ + LoggerRef ConLog = ConsoleLog(); + + ConLog.SpdLogger->set_pattern("%v"); +} + +void InitializeLogging() { ZEN_MEMSCOPE(ELLMTag::Logging); |