2019-03-23 18:40:27 -04:00
|
|
|
//
|
|
|
|
// Copyright(c) 2015 Gabi Melman.
|
|
|
|
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// spdlog usage example
|
|
|
|
//
|
|
|
|
//
|
|
|
|
|
2019-05-11 17:22:39 -04:00
|
|
|
//#include "spdlog/spdlog.h"
|
|
|
|
#include "spdlog/logger.h"
|
|
|
|
//#include "spdlog/sinks/stdout_color_sinks.h"
|
2019-05-11 13:06:17 -04:00
|
|
|
int main(int, char *[])
|
|
|
|
{
|
2019-05-11 17:22:39 -04: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 06:19:53 -04:00
|
|
|
}
|