diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-24 10:52:21 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-24 10:52:21 +0200 |
commit | 39054829fa69bcfa2b468015dc3852a2f8deac9f (patch) | |
tree | e7726d90fb3c23a15919360dd10bdf709e7e087a /src/example/log.cpp | |
parent | dd9940720cde6975f79d65e08075687c47f0aec6 (diff) | |
parent | 5447ddd896eb49ea9fd9f9191a277fd1d5730aa3 (diff) |
merge master into loek/config
Diffstat (limited to 'src/example/log.cpp')
-rw-r--r-- | src/example/log.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/example/log.cpp b/src/example/log.cpp index 2d693d1..86ef193 100644 --- a/src/example/log.cpp +++ b/src/example/log.cpp @@ -12,13 +12,13 @@ using namespace crepe::util; int main() { auto & cfg = api::Config::get_instance(); // make sure all log messages get printed - cfg.log.level = util::log_level::TRACE; + cfg.log.level = util::LogLevel::TRACE; dbg_trace(); dbg_logf("cfg.log.color is equal to %d", cfg.log.color); - logf(log_level::INFO, "info message!"); - logf(log_level::WARNING, "very scary warning"); - logf(log_level::ERROR, "fatal error!!!"); + logf(LogLevel::INFO, "info message!"); + logf(LogLevel::WARNING, "very scary warning"); + logf(LogLevel::ERROR, "fatal error!!!"); return 0; } |