spdlog/example/example.cpp

21 lines
505 B
C++
Raw Normal View History

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
//
//
//#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 *[])
{
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
}