@Override public void uncaughtException( Thread t, Throwable e ) { log.fatal( "Uncaught exception on thread " + t, e ); } } );
private void notice( final String msg, final Object... args ) { if( log != null ) { log.info( msg, args ); } }
protected final void warn( final String msg, final Object... args ) { if( log != null ) { log.warn( message, args ); } }
protected final void error( final String msg, final Object... args ) { if( log != null ) { log.error( msg, args ); } }
public static MucLogger createBasicMucLogger() final Log log = LogFactory.getLog( MucLogger.class );
protected final void info( final String msg, final Object... args ) { if( log != null ) { log.info( message, args ); } }
private static void debug( final XMPPLogic logic, final Stanza msg ) { log.debug( "%s (%s -> %s) -> %s %s", msg.getClass(), msg.getFrom(), msg.getTo(), logic == null ? null : logic.getClass(), logic ); }
protected final void error( final String msg, final Object... args ) { if( log != null ) { log.error( message, args ); } }
protected final void fatal( final String msg, final Object... args ) { if( log != null ) { log.fatal( msg, args ); } }
protected final void warn( final String msg, final Object... args ) { if( log != null ) { log.warn( msg, args ); } }
protected final void info( final String msg, final Object... args ) { if( log != null ) { log.info( msg, args ); } }
private Marshaller createMarshaller() throws JAXBException { getLog().debug( "Creating Marshaller" ); final Marshaller marshaller = new MarshallerWrapper(); if( marshallerCallback != null ) { marshallerCallback.initialiseMarshaller( marshaller, this ); } return marshaller; }
protected final void fatal( final String msg, final Object... args ) { if( log != null ) { log.fatal( message, args ); } }
/** * Identical to File.mkdir() but will log if the logger is not null * @param dir Directory to make * @param log Log to use if not null * @return dir */ public static File mkdir( final File dir, final Log log ) { if( dir.mkdir() && log != null ) { log.info( "Created %s", dir.getPath() ); } return dir; }
/** * Identical to File.mkdir() but will log if the logger is not null * @param dir Directory to make * @param log Log to use if not null * @return dir */ public static File mkdirs( final File dir, final Log log ) { if( dir != null && dir.mkdirs() && log != null ) { log.info( "Created %s", dir.getPath() ); } return dir; }
public StaticFileHandler( final File rootDirectory ) { this.rootDirectory = rootDirectory; getLog().info( "Created StaticHandler for %s", rootDirectory.getAbsolutePath() ); }
@Override protected void consumePresence( Presence presence ) throws MessageException { getLog().info( "Presence %s from %s to %s type %s", presence.getId(), presence.getFrom(), presence.getTo(), presence.getType() ); } }
@Override protected void consumeIq( Iq iq ) throws MessageException { getLog().info( "Iq %s from %s to %s type %s", iq.getId(), iq.getFrom(), iq.getTo(), iq.getType() ); }
@Override protected void consumeMessage( Message message ) throws MessageException { getLog().info( "Message %s from %s to %s type %s", message.getId(), message.getFrom(), message.getTo(), message.getType() ); }