aboutsummaryrefslogtreecommitdiff
path: root/zencore/logging.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Tweaked logging to streamline access, and simplified setup code for new loggersStefan Boberg2021-09-151-11/+13
|
* Made logging macros always append `sv` string_view literal suffixStefan Boberg2021-09-151-2/+2
| | | | Fixed up the few instances of explicit string_view arguments to make sure they compile properly with the new macros
* Changed logging implementationStefan Boberg2021-09-151-0/+10
| | | | | | * Code should no longer directly `#include spdlog/spdlog.h`, instead use `#include <zencore/logging.h>` * Instead of explicit calls to `spdlog::info(...)` and such please use the logging macros defined in `zencore/logging.h`. I.e `ZEN_INFO`, `ZEN_DEBUG`, `ZEN_TRACE`, `ZEN_ERROR`, `ZEN_CRITITCAL` * The macros will pick up the "most local" logger via a `Log()` call to retrieve a logger instance. To override the default logger in a class please implement your own `Log()` function
* clang-formatStefan Boberg2021-09-091-2/+4
|
* Moved a bunch of logging code into zencoreStefan Boberg2021-09-081-0/+57