spdlog/example/example.cpp

11 lines
268 B
C++
Raw Normal View History

2018-07-07 17:53:56 +08:00
#include "spdlog/spdlog.h"
2019-03-23 22:15:58 +08:00
int main()
2016-04-20 16:57:49 +08:00
{
2019-03-23 22:15:58 +08:00
auto l = spdlog::default_logger();
l->trace("HELLO {}!!!", "lite");
l->debug("HELLO {}!!!", "lite");
l->info("HELLO {}!!!", "lite");
l->warn("HELLO {}!!!", "lite");
l->critical("HELLO s{}!!!", "lite");
}