mirror of https://github.com/gabime/spdlog.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
472 B
C++
19 lines
472 B
C++
//
|
|
// Copyright(c) 2015 Gabi Melman.
|
|
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
|
|
|
|
// spdlog usage example
|
|
|
|
#include <cstdio>
|
|
#include <chrono>
|
|
|
|
#include "spdlog/spdlite.h"
|
|
#include "spdlog/sinks/stdout_color_sinks.h"
|
|
|
|
int main(int, char *[]) {
|
|
spdlog::lite_logger logger("console", {std::make_shared<spdlog::sinks::stdout_color_sink_mt>()});
|
|
logger.info("Hello {} {} !!", "param1", 123.4);
|
|
logger.warn("Some warning message");
|
|
|
|
|
|
} |