mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-27 07:14:12 +08:00
14 lines
410 B
C++
14 lines
410 B
C++
#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);
|
|
spdlog::logger logger("spdlog_systemd_test", systemd_sink);
|
|
|
|
logger.debug("test debug");
|
|
SPDLOG_LOGGER_ERROR((&logger), "test error");
|
|
logger.info("test info");
|
|
}
|