diff options
Diffstat (limited to 'example/example.cpp')
-rw-r--r-- | example/example.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/example/example.cpp b/example/example.cpp index 2f7cad33..3ec57180 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -31,10 +31,11 @@ int main(int, char* []) spd::set_level(spd::level::WARN); console->info("This should not be displayed"); console->warn("This should!"); + spd::set_level(spd::level::INFO); // Change format pattern to all loggers spd::set_pattern(" **** %Y-%m-%d %H:%M:%S.%e %l **** %v"); - spd::get("console")->warn("This is another message with different format"); + spd::get("console")->info("This is another message with different format"); } catch (const spd::spdlog_ex& ex) { |