mirror of https://github.com/gabime/spdlog.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
373 B
C++
24 lines
373 B
C++
//
|
|
// Copyright(c) 2015 Gabi Melman.
|
|
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
|
|
//
|
|
//
|
|
// spdlog usage example
|
|
//
|
|
//
|
|
|
|
#include "spdlog/logger.h"
|
|
|
|
|
|
|
|
spdlog::logger *get_logger();
|
|
|
|
int main(int, char *[])
|
|
{
|
|
auto *l = get_logger();
|
|
l->info("HELLO {}", "World");
|
|
l->warn("SOME WARNINNG");
|
|
l->error("Some {}", "error");
|
|
|
|
|
|
} |