spdlog/lite-example/example.cpp

12 lines
261 B
C++
Raw Normal View History

2019-03-23 11:25:50 -04:00
#include "spdlite.h"
2019-03-23 07:31:57 -04:00
int main()
{
2019-03-23 17:13:38 -04:00
auto l = spdlog::create_lite();
l.set_level(spdlog::lite::level::trace);
2019-03-23 18:41:22 -04:00
l.trace_f("Hello %s ", "GABI");
l.info_f("Hello %d", 12346);
2019-03-23 18:38:00 -04:00
l.warn_f("Hello %f", 12346.5656);
l.warn("Hello {}", 12346.5656);
2019-03-23 07:31:57 -04:00
}