NXP-15905: Protect log.trace and log.debug by log.isTraceEnabled / log.isDebugEnabled when using String.format to avoid contentions