mirror of https://github.com/gabime/spdlog.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
407 B
C++
19 lines
407 B
C++
#include "spdlite.h"
|
|
|
|
int main()
|
|
{
|
|
auto l = spdlog::lite::create_logger();
|
|
l.set_level(spdlog::lite::level::trace);
|
|
|
|
l.trace_printf("Hello %s ", "GABI");
|
|
l.info_printf("Hello %d", 12346);
|
|
l.warn_printf("Hello %f", 12346.5656);
|
|
l.warn("Hello {}", "LITE :) ");
|
|
|
|
auto l2 = l.clone("logger2");
|
|
l2.debug("HELLO");
|
|
|
|
auto l3 = std::move(l);
|
|
l3.warn("HELLO FROM L3");
|
|
|
|
} |