2019-03-23 23:25:50 +08:00
|
|
|
#include "spdlite.h"
|
2019-03-23 19:31:57 +08:00
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
2019-03-29 19:38:40 +08:00
|
|
|
auto l = spdlog::lite::create_logger();
|
2019-03-24 05:13:38 +08:00
|
|
|
l.set_level(spdlog::lite::level::trace);
|
2019-03-24 06:30:08 +08:00
|
|
|
|
2019-03-29 19:38:40 +08:00
|
|
|
l.trace_printf("Hello %s ", "GABI");
|
2019-03-24 07:21:07 +08:00
|
|
|
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
|
|
|
|
2019-03-29 19:38:40 +08:00
|
|
|
auto l2 = l.clone("logger2");
|
2019-03-24 07:40:20 +08:00
|
|
|
l2.debug("HELLO");
|
|
|
|
|
2019-03-29 19:38:40 +08:00
|
|
|
auto l3 = std::move(l);
|
|
|
|
l3.warn("HELLO FROM L3");
|
|
|
|
|
2019-03-23 19:31:57 +08:00
|
|
|
}
|