private void log(Levels logLevel, String component, String message, Throwable exception, Object... args) { if (m_logLevel.ordinal() > logLevel.ordinal()) { // we're not interested at this log entry... return; } if (args.length > 0) { message = String.format(message, args); } if (!invokeExternalLogService(logLevel, message, exception)) { invokeInternalLogService(logLevel, component, message, exception); } }