spdlog/example/example.cpp

25 lines
327 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
namespace spdlog {
class logger;
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();
l->info("HELLO");
}