spdlog/lite-example/example.cpp

11 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 05:13:38 +08:00
using namespace spdlog;
auto l = spdlog::create_lite();
l.set_level(spdlog::lite::level::trace);
lite::default_logger().set_level(l.get_level());
lite::trace("hello");
lite::trace("hello {}", std::string("again"));
2019-03-23 19:31:57 +08:00
}