spdlog/lite-example/example.cpp

16 lines
335 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:23:14 +08:00
auto l = spdlog::create_lite();
2019-03-24 05:13:38 +08:00
l.set_level(spdlog::lite::level::trace);
2019-03-24 07:21:07 +08:00
l.trace_printf("Hello %s ", "GABI");
l.info_printf("Hello %d", 12346);
l.warn_printf("Hello %f", 12346.5656);
2019-03-24 07:23:14 +08:00
l.warn("Hello {}", "LITE :) ");
2019-03-24 07:40:20 +08:00
auto l2 = l.clone("logger2");
l2.debug("HELLO");
2019-03-23 19:31:57 +08:00
}