mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
astyle
This commit is contained in:
parent
258531481d
commit
febdf7324f
@ -31,7 +31,8 @@ inline spdlog::logger::logger(const std::string& logger_name, sinks_init_list si
|
|||||||
|
|
||||||
// ctor with single sink
|
// ctor with single sink
|
||||||
inline spdlog::logger::logger(const std::string& logger_name, spdlog::sink_ptr single_sink) :
|
inline spdlog::logger::logger(const std::string& logger_name, spdlog::sink_ptr single_sink) :
|
||||||
logger(logger_name, {
|
logger(logger_name,
|
||||||
|
{
|
||||||
single_sink
|
single_sink
|
||||||
}) {}
|
}) {}
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ TEST_CASE("basic_logging ", "[basic_logging]")
|
|||||||
TEST_CASE("log_levels", "[log_levels]")
|
TEST_CASE("log_levels", "[log_levels]")
|
||||||
{
|
{
|
||||||
REQUIRE(log_info("Hello", spdlog::level::err) == "");
|
REQUIRE(log_info("Hello", spdlog::level::err) == "");
|
||||||
REQUIRE(log_info("Hello", spdlog::level::critical) == "");
|
REQUIRE(log_info("Hello", spdlog::level::critical) == "");
|
||||||
REQUIRE(log_info("Hello", spdlog::level::info) == "Hello");
|
REQUIRE(log_info("Hello", spdlog::level::info) == "Hello");
|
||||||
REQUIRE(log_info("Hello", spdlog::level::debug) == "Hello");
|
REQUIRE(log_info("Hello", spdlog::level::debug) == "Hello");
|
||||||
REQUIRE(log_info("Hello", spdlog::level::trace) == "Hello");
|
REQUIRE(log_info("Hello", spdlog::level::trace) == "Hello");
|
||||||
|
Loading…
Reference in New Issue
Block a user