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-05-12 05:22:39 +08:00
|
|
|
//#include "spdlog/spdlog.h"
|
|
|
|
#include "spdlog/logger.h"
|
|
|
|
//#include "spdlog/sinks/stdout_color_sinks.h"
|
2019-05-12 01:06:17 +08:00
|
|
|
int main(int, char *[])
|
|
|
|
{
|
2019-05-12 05:22:39 +08:00
|
|
|
spdlog::logger *l = nullptr;
|
|
|
|
const int i = 123;
|
|
|
|
l->info("HELLO STATIC! {}", i);
|
|
|
|
l->info("HELLO STATIC! {}", "GABI");
|
|
|
|
l->info("HELLO STATIC! {} {}", "GABI", i);
|
|
|
|
l->warn("HELLO STATIC! {} {}", "GABI", i);
|
2019-05-11 18:19:53 +08:00
|
|
|
}
|