aboutsummaryrefslogtreecommitdiff
path: root/src/zenutil/logging.cpp
Commit message (Collapse)AuthorAgeFilesLines
* eliminate redundant logging code (#499)Stefan Boberg2023-10-251-409/+93
| | | | | | | | | zenutil and zenserver both contain very similar logging setup code and this change aims to make them have most code in common. * fullformatter/jsonformatter/RotatingFileSink are moved into dedicated header files in zenutil * zenserver `InitializeLogging`/`ShutdownLogging` are renamed `InitializeServerLogging`/`InitializeServerLogging` * these now call into the common zenutil `BeginInitializeLogging`/`FinishInitializeLogging` in addition to setting up server custom logging * `std::filesystem::path` is now logged after stripping any `\\\\?\\` prefix for readability
* added logging utility functions (from sb/proto) (#469)Stefan Boberg2023-10-121-0/+516
these allow standalone programs to share much of the logging setup from zenserver