spdlog/example/example.cpp

22 lines
431 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
//
//
2019-04-05 17:15:14 -04:00
#include "spdlog/spdlog.h"
2019-04-05 06:26:33 -04:00
#include "spdlog/logger.h"
2019-03-23 18:40:27 -04:00
2019-04-05 06:26:33 -04:00
spdlog::logger *get_logger();
2019-03-23 18:40:27 -04:00
2019-04-05 06:26:33 -04:00
int main(int, char *[])
{
2019-04-05 18:25:33 -04:00
int x = 4;
spdlog::info("HELLO {}", "st at ic");
spdlog::warn("HELLO {}*{} = {}", x, x, x*x);
/*auto *l = get_logger();
l->info("HEllo {}", "HG FS");*/
2019-04-05 06:26:33 -04:00
}