/** * Used by SettingsFactory (in conjunction with stats being enabled) to determine whether to apply this listener * * @return {@code true} if logging is enabled for this listener. */ public static boolean isLoggingEnabled() { return log.isInfoEnabled(); }
@Override public boolean isInfoEnabled() { return logger.isInfoEnabled(); }
@Override public boolean isInfoEnabled() { return logger.isInfoEnabled(); }
@Override public boolean isInfoEnabled() { return log.isInfoEnabled(); }
@Override public boolean isInfoEnabled() { return this.logger.isInfoEnabled(); }
@SuppressWarnings("deprecation") public boolean isInfoEnabled() { return logger.isInfoEnabled(); }
@Override @SuppressWarnings("deprecation") public boolean isInfoEnabled() { return logger.isInfoEnabled(); }
@Override public void handleFault(Exchange exchange) { if (_log.isInfoEnabled()) { _log.info(ExchangeFormatter.format(exchange, true)); } }
/** * Logs the SwitchYard notification returned by {@link #getSwitchYardNotification()}. * @param logger the Logger to log to */ public static void logSwitchYardNotification(Logger logger) { if (logger.isInfoEnabled()) { logger.info(getSwitchYardNotification()); } }
public void expireSession( String sessionId ) { Session s=(Session)sessions.get(sessionId); if( s==null ) { if(log.isInfoEnabled()) log.info("Session not found " + sessionId); return; } s.expire(); }
public String getCreationTime( String sessionId ) { Session s=(Session)sessions.get(sessionId); if( s==null ) { if(log.isInfoEnabled()) log.info("Session not found " + sessionId); return ""; } return new Date(s.getCreationTime()).toString(); }
@Override public void handleMessage(Exchange exchange) throws HandlerException { if (_log.isInfoEnabled()) { _log.info(ExchangeFormatter.format(exchange, true)); } }
public SingleGroupInputThread(MultiplexingManager manager, Socket socket, OutputStream os) throws IOException { this.is = new BufferedInputStream(socket.getInputStream()); this.manager = manager; currentOutputStream = os; trace = log.isTraceEnabled(); debug = log.isDebugEnabled(); info = log.isInfoEnabled(); }
public void sbbRolledBack(RolledBackContext context) { if (sbbObject != null) { sbbObject.sbbRolledBack(context); sbbObject.sbbStore(); sbbObject.sbbPassivate(); } else { if (log.isInfoEnabled()) log.info("Unexpected case. Check it!"); // CHECKME } }
@Override public void info(final String format, final Object arg) { if (logger.isInfoEnabled()) { final FormattingTuple formattingTuple = MessageFormatter.format(format, arg); log(Level.INFO, LOGGER_FQCN, formattingTuple.getMessage(), formattingTuple.getThrowable()); } }
@Override public void info(final String format, final Object arg1, final Object arg2) { if (logger.isInfoEnabled()) { final FormattingTuple formattingTuple = MessageFormatter.format(format, arg1, arg2); log(Level.INFO, LOGGER_FQCN, formattingTuple.getMessage(), formattingTuple.getThrowable()); } }
public void resume() throws Exception { try { endpoint.resume(); } catch (Exception ex) { log.error(sm.getString("http11protocol.endpoint.resumeerror"), ex); throw ex; } if (log.isInfoEnabled()) log.info(sm.getString("http11protocol.resume", getName())); }
public void destroy() throws Exception { if (log.isInfoEnabled()) log.info(sm.getString("ajpprotocol.stop", getName())); endpoint.destroy(); if (tpOname!=null) Registry.getRegistry(null, null).unregisterComponent(tpOname); if (rgOname != null) Registry.getRegistry(null, null).unregisterComponent(rgOname); }
public void destroy() throws Exception { if (log.isInfoEnabled()) log.info(sm.getString("ajpprotocol.stop", getName())); endpoint.destroy(); if (tpOname!=null) Registry.getRegistry(null, null).unregisterComponent(tpOname); if (rgOname != null) Registry.getRegistry(null, null).unregisterComponent(rgOname); }
public void destroy() throws Exception { if(log.isInfoEnabled()) log.info(sm.getString("http11protocol.stop", getName())); endpoint.destroy(); if( tpOname!=null ) Registry.getRegistry(null, null).unregisterComponent(tpOname); if( rgOname != null ) Registry.getRegistry(null, null).unregisterComponent(rgOname); }