Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gabime/spdlog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'example/example.cpp')
-rw-r--r--example/example.cpp3
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)
{