mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
22 lines
498 B
C++
22 lines
498 B
C++
//
|
|
// Copyright(c) 2015 Gabi Melman.
|
|
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
|
|
//
|
|
//
|
|
// spdlog usage example
|
|
//
|
|
//
|
|
|
|
|
|
#include "spdlog/spdlog.h"
|
|
#include "spdlog/async.h"
|
|
#include "spdlog/sinks/stdout_color_sinks.h"
|
|
|
|
int main(int, char *[])
|
|
{
|
|
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");
|
|
}
|