diff options
| author | Stefan Boberg <[email protected]> | 2021-09-15 11:27:48 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-15 11:27:48 +0200 |
| commit | 2b9bed6635d95e15847c4d9b602e34d90e277d14 (patch) | |
| tree | 66fb191150ccbf9f56315a716abd23b25cc1d401 /zen/cmds/deploy.cpp | |
| parent | xmake: added zenhttp dependency to make zen CLI tool buld (diff) | |
| download | archived-zen-2b9bed6635d95e15847c4d9b602e34d90e277d14.tar.xz archived-zen-2b9bed6635d95e15847c4d9b602e34d90e277d14.zip | |
Changed logging implementation
* 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
Diffstat (limited to 'zen/cmds/deploy.cpp')
| -rw-r--r-- | zen/cmds/deploy.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/zen/cmds/deploy.cpp b/zen/cmds/deploy.cpp index b6ff53cf7..bee7baf90 100644 --- a/zen/cmds/deploy.cpp +++ b/zen/cmds/deploy.cpp @@ -2,8 +2,8 @@ #include "deploy.h" -#include <zencore/string.h> #include <zencore/logging.h> +#include <zencore/string.h> DeployCommand::DeployCommand() { @@ -60,7 +60,7 @@ DeployCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv) if (IsTargetNew == false && m_IsClean) { - spdlog::info("Clean deploy -- deleting directory {}", Path8.c_str()); + ZEN_INFO("Clean deploy -- deleting directory {}", Path8.c_str()); std::filesystem::remove_all(ToPath); @@ -69,12 +69,12 @@ DeployCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv) if (IsTargetNew) { - spdlog::info("Creating directory {}", Path8.c_str()); + ZEN_INFO("Creating directory {}", Path8.c_str()); std::filesystem::create_directories(ToPath); } - spdlog::info("Starting deploy operation..."); + ZEN_INFO("Starting deploy operation..."); // TODO: implement! |