spdlog/tests/test_systemd.cpp

14 lines
392 B
C++
Raw Normal View History

2019-03-14 23:20:58 +08:00
#include "includes.h"
#include <spdlog/sinks/systemd_sink.h>
TEST_CASE("systemd", "[all]")
{
auto systemd_sink = std::make_shared<spdlog::sinks::systemd_sink_st>();
systemd_sink->set_level(spdlog::level::level_enum::err);
2019-03-22 20:16:16 +08:00
spdlog::logger logger("spdlog_systemd_test", systemd_sink);
logger.debug("test debug");
logger.error("test error");
logger.info("test info");
2019-03-14 23:20:58 +08:00
}