mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
added printf syntax support for even faster compilation!
This commit is contained in:
@@ -5,7 +5,9 @@ int main()
|
||||
using namespace spdlog;
|
||||
auto l = spdlog::create_lite();
|
||||
l.set_level(spdlog::lite::level::trace);
|
||||
lite::default_logger().set_level(l.get_level());
|
||||
lite::trace("hello");
|
||||
lite::trace("hello {}", std::string("again"));
|
||||
|
||||
|
||||
l.trace_f("Hello %s ","GABI");
|
||||
l.info_f("Hello %d", 12346);
|
||||
|
||||
}
|
Reference in New Issue
Block a user