3334353637383940414243
{ final Logger logger = getLogger(); //final String cat = logger.getCategory(); //defaultLogger.info( "Category is " + cat ); logger.debug( message ); logger.info( message ); logger.warn( message ); logger.error( message ); logger.fatalError( message ); } }
979899100101102103104105106107
super.println(s); if ( DEBUG_PROTOCOL ) logger.debug("S: "+s); } }; logger.info( "Connection from " + socket.getInetAddress()); } catch (Exception e) { logger.error( "Cannot open connection from: " + e.getMessage(), e ); } try {
119120121122123124125126127128129
reader.close(); writer.close(); socket.close(); scheduler.removeTrigger(this.toString()); logger.info("Connection closed"); } catch (Exception e) { doQUIT(); //writer.println("502 Error closing connection."); //writer.flush(); logger.error( "Exception during connection:" + e.getMessage(), e );
159160161162163164165166167168169
public void info( final String message ) { final Logger logger = getLogger(); try { logger.info( message ); } finally { releaseLogger(); }
172173174175176177178179180181182
public void info( final String message, final Throwable throwable ) { final Logger logger = getLogger(); try { logger.info( message, throwable ); } finally { releaseLogger(); }
7879808182838485868788
mockLog.expects(once()).method("info").with(eq("JUnit")); mockLog.expects(once()).method("info").with(eq("JUnit"), same(exception)); if(logger.isInfoEnabled()) { logger.info("JUnit"); logger.info("JUnit", exception); } } /**
7980818283848586878889
mockLog.expects(once()).method("info").with(eq("JUnit"), same(exception)); if(logger.isInfoEnabled()) { logger.info("JUnit"); logger.info("JUnit", exception); } } /** * Test warn level.
7071727374757677787980
return; } } if (logger.isInfoEnabled()) { logger.info("Scheduling cron job named '" + name + "'"); } Object job = null; String jobrole = null;
7778798081828384858687