mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 10:31:34 +08:00
22 lines
431 B
C++
22 lines
431 B
C++
//
|
|
// Copyright(c) 2015 Gabi Melman.
|
|
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
|
|
//
|
|
//
|
|
// spdlog usage example
|
|
//
|
|
//
|
|
|
|
#include "spdlog/spdlog.h"
|
|
#include "spdlog/logger.h"
|
|
|
|
spdlog::logger *get_logger();
|
|
|
|
int main(int, char *[])
|
|
{
|
|
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");*/
|
|
} |