Adds an isWarnEnabled() method to the Logger.