mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-28 09:09:35 +08:00
clang format and SPLDOG_HEADER_ONLY macro
This commit is contained in:
@@ -7,10 +7,15 @@
|
||||
//
|
||||
//
|
||||
|
||||
#include "spdlog/spdlog.h"
|
||||
|
||||
//#include "spdlog/spdlog.h"
|
||||
#include "spdlog/logger.h"
|
||||
//#include "spdlog/sinks/stdout_color_sinks.h"
|
||||
int main(int, char *[])
|
||||
{
|
||||
int i = 123;
|
||||
spdlog::info("HELLO STATIC! {}", i);
|
||||
spdlog::logger *l = nullptr;
|
||||
const int i = 123;
|
||||
l->info("HELLO STATIC! {}", i);
|
||||
l->info("HELLO STATIC! {}", "GABI");
|
||||
l->info("HELLO STATIC! {} {}", "GABI", i);
|
||||
l->warn("HELLO STATIC! {} {}", "GABI", i);
|
||||
}
|
Reference in New Issue
Block a user