Provide source location support for systemd_sink.h

This commit is contained in:
Jorge Bellon-Castro
2019-06-27 15:00:12 +01:00
parent 3d069f7b46
commit a13981ffe4
3 changed files with 27 additions and 8 deletions

View File

@@ -14,7 +14,7 @@ set(SPDLOG_UTESTS_SOURCES
test_mpmc_q.cpp
test_sink.h
test_fmt_helper.cpp
test_stdout_api.cpp)
test_stdout_api.cpp)
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/logs")
enable_testing()

View File

@@ -8,6 +8,6 @@ TEST_CASE("systemd", "[all]")
spdlog::logger logger("spdlog_systemd_test", systemd_sink);
logger.debug("test debug");
logger.error("test error");
SPDLOG_LOGGER_ERROR((&logger), "test error");
logger.info("test info");
}