spdlog/lite-example/example.cpp

12 lines
275 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 07:18:05 +08:00
auto l = spdlog::create_lite((void*)"async");
2019-03-24 05:13:38 +08:00
l.set_level(spdlog::lite::level::trace);
2019-03-24 06:41:22 +08:00
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
}