spdlog/lite-example/example.cpp

13 lines
288 B
C++
Raw Normal View History

2019-03-23 23:25:50 +08:00
#include "spdlite.h"
2019-03-23 19:31:57 +08:00
int main()
{
2019-03-24 05:13:38 +08:00
using namespace spdlog;
auto l = spdlog::create_lite();
l.set_level(spdlog::lite::level::trace);
l.trace_f("Hello %s ","GABI");
l.info_f("Hello %d", 12346);
2019-03-24 06:38:00 +08:00
l.warn_f("Hello %f", 12346.5656);
l.warn("Hello {}", 12346.5656);
2019-03-23 19:31:57 +08:00
}