be more sensitive to different types of logger implementations, and short-circuit the formatting process if the log level is disabled.