Skip to content

Commit

Permalink
fixed extra loggers being defined for Android
Browse files Browse the repository at this point in the history
  • Loading branch information
JessyDL committed Feb 4, 2024
1 parent 3ed5f3f commit 27c9f89
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/src/logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,15 @@ auto core::initialize_loggers() -> bool {
core::os::log = spdlog::android_logger_mt("os", "paradigm");
core::data::log = spdlog::android_logger_mt("data", "paradigm");
core::gfx::log = spdlog::android_logger_mt("gfx", "paradigm");
#if defined(PE_VULKAN)
core::ivk::log = spdlog::android_logger_mt("ivk", "paradigm");
#endif
#if defined(PE_GLES)
core::igles::log = spdlog::android_logger_mt("igles", "paradigm");
#endif
#if defined(PE_WEBGPU)
core::iwgpu::log = spdlog::android_logger_mt("iwgpu", "paradigm");
#endif
spdlog::set_pattern("[%8T:%6f] [%=8l] %^%v%$ %@", spdlog::pattern_time_type::utc);
}

Expand Down

0 comments on commit 27c9f89

Please sign in to comment.