Skip to content

Commit 8c19c31

Browse files
committed
try spdlog
1 parent a067fae commit 8c19c31

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cli/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
#include <cetl/pf17/cetlpf.hpp>
1010
#include <libcyphal/types.hpp>
1111

12+
#include <spdlog/sinks/stdout_color_sinks.h>
13+
#include <spdlog/spdlog.h>
14+
1215
#include <algorithm>
1316
#include <cerrno>
1417
#include <cstdlib>
@@ -52,6 +55,7 @@ int main(const int, const char** const)
5255

5356
setup_signal_handlers();
5457

58+
spdlog::info("ocvsmd cli started (ver='{}.{}').", VERSION_MAJOR, VERSION_MINOR);
5559
::openlog("ocvsmd-cli", LOG_PID, LOG_USER);
5660
::syslog(LOG_NOTICE, "ocvsmd cli started."); // NOLINT *-vararg
5761
{

0 commit comments

Comments
 (0)