Skip to content

Commit

Permalink
Register core_application logger as default logger
Browse files Browse the repository at this point in the history
So that logs made without an explicit logger are done using
this logger.

Change-Id: Ifd454e9ede1c89548827c073b847ea9ad191a22b
Reviewed-on: https://codereview.kdab.com/c/kdab/kdutils/+/136291
Reviewed-by: Sean Harmer <[email protected]>
Reviewed-by: Mike Krus <[email protected]>
Tested-by: Continuous Integration <[email protected]>
  • Loading branch information
lemirep committed Jan 16, 2024
1 parent 36f3130 commit be68a7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/KDFoundation/core_application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ CoreApplication::CoreApplication(std::unique_ptr<AbstractPlatformIntegration> &&
m_logger = KDUtils::Logger::logger("application");
m_logger->set_level(spdlog::level::info);
}
spdlog::set_default_logger(m_logger);

// Helps with debugging setup on remote hosts
if (const char *display = std::getenv("DISPLAY"))
Expand Down

0 comments on commit be68a7c

Please sign in to comment.