The IF_LOG_ENABLED macro only checks for the logger being enabled, not for the enabled log level. This leads to drastical performance drops in the IDESolver when enabling logging -- even if just INFO log is enabled.
This PR fixes this issue by providing a new macro IF_LOG_LEVEL_ENABLED that additionally checks for the enabled log level.
Additionally, the logger is slightly refactored
The
IF_LOG_ENABLED
macro only checks for the logger being enabled, not for the enabled log level. This leads to drastical performance drops in the IDESolver when enabling logging -- even if just INFO log is enabled.This PR fixes this issue by providing a new macro
IF_LOG_LEVEL_ENABLED
that additionally checks for the enabled log level. Additionally, the logger is slightly refactored