public String warning(final String message) { if (isWarningEnabled()) { final String msg = getMessage(message, baseName); logStream.warn(msg); return msg; } return message; }
public String warning(final String message, final Throwable t) { if (isWarningEnabled()) { final String msg = getMessage(message, baseName); logStream.warn(msg, t); return msg; } return message; }
public String warning(String message, Throwable t) { if (isWarningEnabled()) { String msg = getMessage(message, baseName); logStream.warn(msg, t); return msg; } return message; }
public String warning(final String message) { if (isWarningEnabled()) { final String msg = getMessage(message, baseName); logStream.warn(msg); return msg; } return message; }
public String warning(final String message, final Throwable t) { if (isWarningEnabled()) { final String msg = getMessage(message, baseName); logStream.warn(msg, t); return msg; } return message; }
public String warning(String message) { if (isWarningEnabled()) { String msg = getMessage(message, baseName); logStream.warn(msg); return msg; } return message; }
private static void checkForIgnoredLog4jConfig() { if (logStreamFactory.getClass().getName().equals("org.apache.openejb.util.Log4jLogStreamFactory")) { return; } try { final Properties configFile = log4j(loadLoggingProperties()); final Properties systemProperties = log4j(SystemInstance.get().getProperties()); if (configFile.size() == 0 && systemProperties.size() == 0) { return; } final LogStream stream = logStreamFactory.createLogStream(LogCategories.TRIBESTREAM); stream.warn("Log4j not installed. The following properties will be ignored."); final String format = "Ignored %s property '%s'"; for (final Object key : configFile.keySet()) { stream.warn(String.format(format, "conf/logging.properties", key)); } for (final Object key : systemProperties.keySet()) { stream.warn(String.format(format, "Property overrides", key)); } } catch (final Throwable e) { // added strong catch block just in case // This check is only a convenience } }
private static void checkForIgnoredLog4jConfig() { if (logStreamFactory.getClass().getName().equals("org.apache.openejb.util.Log4jLogStreamFactory")) { return; } try { final Properties configFile = log4j(loadLoggingProperties()); final Properties systemProperties = log4j(SystemInstance.get().getProperties()); if (configFile.size() == 0 && systemProperties.size() == 0) { return; } final LogStream stream = logStreamFactory.createLogStream(LogCategory.OPENEJB); stream.warn("Log4j not installed. The following properties will be ignored."); final String format = "Ignored %s property '%s'"; for (final Object key : configFile.keySet()) { stream.warn(String.format(format, "conf/logging.properties", key)); } for (final Object key : systemProperties.keySet()) { stream.warn(String.format(format, "Property overrides", key)); } } catch (final Throwable e) { // added strong catch block just in case // This check is only a convenience } }
private static void checkForIgnoredLog4jConfig() { if (logStreamFactory.getClass().getName().equals("org.apache.openejb.util.Log4jLogStreamFactory")) { return; } try { final Properties configFile = log4j(loadLoggingProperties()); final Properties systemProperties = log4j(SystemInstance.get().getProperties()); if (configFile.size() == 0 && systemProperties.size() == 0) { return; } if (systemProperties.size() == 1 && "log4j.configurationFile".equals(systemProperties.stringPropertyNames().iterator().next())) { // not a logger config but the overall config // since log4j2 uses it too we can't pollute logs with warnings there for that only return; } final LogStream stream = logStreamFactory.createLogStream(LogCategory.OPENEJB); stream.warn("Log4j not installed. The following properties will be ignored."); final String format = "Ignored %s property '%s'"; for (final Object key : configFile.keySet()) { stream.warn(String.format(format, "conf/logging.properties", key)); } for (final Object key : systemProperties.keySet()) { stream.warn(String.format(format, "Property overrides", key)); } } catch (final Throwable e) { // added strong catch block just in case // This check is only a convenience } }
public String warning(final String message, final Throwable t, final Object... args) { if (isWarningEnabled()) { String msg = getMessage(message, baseName); msg = formatMessage(msg, args); logStream.warn(msg, t); return msg; } return message; }
public String warning(String message, Object... args) { if (isWarningEnabled()) { String msg = getMessage(message, baseName); msg = formatMessage(msg, args); logStream.warn(msg); return msg; } return message; }
public String warning(final String message, final Throwable t, final Object... args) { if (isWarningEnabled()) { String msg = getMessage(message, baseName); msg = formatMessage(msg, args); logStream.warn(msg, t); return msg; } return message; }
public String warning(final String message, final Object... args) { if (isWarningEnabled()) { String msg = getMessage(message, baseName); msg = formatMessage(msg, args); logStream.warn(msg); return msg; } return message; }
public String warning(final String message, final Object... args) { if (isWarningEnabled()) { String msg = getMessage(message, baseName); msg = formatMessage(msg, args); logStream.warn(msg); return msg; } return message; }
public String warning(String message, Throwable t, Object... args) { if (isWarningEnabled()) { String msg = getMessage(message, baseName); msg = formatMessage(msg, args); logStream.warn(msg, t); return msg; } return message; }
public String warning(final Object logCode, final String message, final Throwable t) { final String logId = getLogId(logCode); if (isWarningEnabled() && isCodeEnabled(logId)) { final String msg = getMessage(logId, message, baseName); logStream.warn(msg, t); return msg; } return message; }
public String warning(final Object logCode, final String message, final Object... args) { final String logId = getLogId(logCode); if (isWarningEnabled() && isCodeEnabled(logId)) { String msg = getMessage(logId, message, baseName); msg = formatMessage(msg, args); logStream.warn(msg); return msg; } return message; }
public String warning(final Object logCode, final String message, final Throwable t, final Object... args) { final String logId = getLogId(logCode); if (isWarningEnabled() && isCodeEnabled(logId)) { String msg = getMessage(logId, message, baseName); msg = formatMessage(msg, args); logStream.warn(msg, t); return msg; } return message; }