spdlog/example/example.cpp

24 lines
373 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 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 *[])
{
auto *l = get_logger();
2019-04-05 09:44:17 -04:00
l->info("HELLO {}", "World");
l->warn("SOME WARNINNG");
l->error("Some {}", "error");
2019-04-05 06:26:33 -04:00
}