2019-03-24 06:40:27 +08:00
|
|
|
//
|
|
|
|
// Copyright(c) 2015 Gabi Melman.
|
|
|
|
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// spdlog usage example
|
|
|
|
//
|
|
|
|
//
|
|
|
|
|
2019-04-06 05:15:14 +08:00
|
|
|
#include "spdlog/spdlog.h"
|
2019-04-05 18:26:33 +08:00
|
|
|
#include "spdlog/logger.h"
|
2019-03-24 06:40:27 +08:00
|
|
|
|
2019-04-05 18:26:33 +08:00
|
|
|
spdlog::logger *get_logger();
|
2019-03-24 06:40:27 +08:00
|
|
|
|
2019-04-05 18:26:33 +08:00
|
|
|
int main(int, char *[])
|
|
|
|
{
|
2019-04-06 06:25:33 +08:00
|
|
|
int x = 4;
|
2019-04-06 17:57:09 +08:00
|
|
|
|
|
|
|
auto *l = get_logger();
|
|
|
|
l->info("HEllo { }", "HG FS");
|
2019-04-05 18:26:33 +08:00
|
|
|
}
|