mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-27 07:14:12 +08:00
21 lines
342 B
C++
21 lines
342 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 {}", "GA");
|
|
l->error("Some {}", "error");
|
|
|
|
|
|
} |