mirror of
https://github.com/gabime/spdlog.git
synced 2025-03-31 02:12:40 +08:00
Minor fixes
This commit is contained in:
parent
82069b2455
commit
4bb1c9589b
@ -1,10 +1,10 @@
|
|||||||
# spdlog
|
# spdlog
|
||||||
|
|
||||||
Very fast, header-only/compiled, C++ logging library. [](https://github.com/gabime/spdlog/actions/workflows/ci.yml) [](https://ci.appveyor.com/project/gabime/spdlog) [](https://github.com/gabime/spdlog/releases/latest)
|
Very fast, header-only/compiled, C++ logging library. [](https://github.com/gabime/spdlog/actions/workflows/ci.yml) [](https://ci.appveyor.com/project/gabime/spdlog) [](https://github.com/gabime/spdlog/releases/latest)
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
#### Header-only version
|
#### Header-only version
|
||||||
Copy the include [folder](https://github.com/gabime/spdlog/tree/v1.x/include/spdlog) to your build tree and use a C++17 compiler.
|
Copy the include [folder](https://github.com/gabime/spdlog/tree/v2.x/include/spdlog) to your build tree and use a C++17 compiler.
|
||||||
|
|
||||||
#### Compiled version (recommended - much faster compile times)
|
#### Compiled version (recommended - much faster compile times)
|
||||||
```console
|
```console
|
||||||
|
@ -12,7 +12,7 @@ TEST_CASE("test_source_location", "[source_location]")
|
|||||||
auto oss_sink = std::make_shared<spdlog::sinks::ostream_sink_st>(oss);
|
auto oss_sink = std::make_shared<spdlog::sinks::ostream_sink_st>(oss);
|
||||||
spdlog::logger oss_logger("oss", oss_sink);
|
spdlog::logger oss_logger("oss", oss_sink);
|
||||||
oss_logger.set_pattern("%s:%# %v");
|
oss_logger.set_pattern("%s:%# %v");
|
||||||
|
|
||||||
oss_logger.info("Hello {}", "source location");
|
oss_logger.info("Hello {}", "source location");
|
||||||
REQUIRE(oss.str() == std::string("test_source_location.cpp:16 Hello source location") + default_eol);
|
REQUIRE(oss.str() == std::string("test_source_location.cpp:16 Hello source location") + default_eol);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user