2019-03-24 00:40:27 +02:00
|
|
|
//
|
|
|
|
// Copyright(c) 2015 Gabi Melman.
|
|
|
|
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// spdlog usage example
|
|
|
|
//
|
|
|
|
//
|
|
|
|
|
2019-04-26 15:11:01 +03:00
|
|
|
|
2019-04-06 00:15:14 +03:00
|
|
|
#include "spdlog/spdlog.h"
|
2019-04-26 15:11:01 +03:00
|
|
|
#include "spdlog/async.h"
|
|
|
|
#include "spdlog/sinks/stdout_color_sinks.h"
|
2019-03-24 00:40:27 +02:00
|
|
|
|
2019-04-05 13:26:33 +03:00
|
|
|
int main(int, char *[])
|
2019-04-26 15:11:01 +03: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");
|
|
|
|
}
|