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-26 20:11:01 +08:00
|
|
|
|
2019-04-06 05:15:14 +08:00
|
|
|
#include "spdlog/spdlog.h"
|
2019-04-26 20:11:01 +08:00
|
|
|
#include "spdlog/async.h"
|
|
|
|
#include "spdlog/sinks/stdout_color_sinks.h"
|
2019-03-24 06:40:27 +08:00
|
|
|
|
2019-04-05 18:26:33 +08:00
|
|
|
int main(int, char *[])
|
2019-04-26 20:11:01 +08:00
|
|
|
{
|
|
|
|
using spdlog::sinks::stderr_color_sink_mt;
|
|
|
|
auto logger = spdlog::create_async<spdlog::sinks::stderr_color_sink_mt>("async");
|
|
|
|
logger->info("HEllo xsdsdfs {}", 123);
|
|
|
|
//spdlog::error("HEllo err {}", "HG FS");
|
|
|
|
}
|