diff options
Diffstat (limited to 'example/example.cpp')
-rw-r--r-- | example/example.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/example/example.cpp b/example/example.cpp index 519e1a7e..532bbb5c 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -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); }
\ No newline at end of file |