Tabnine Logo
Log.debug
Code IndexAdd Tabnine to your IDE (free)

How to use
debug
method
in
uk.org.retep.logging.Log

Best Java code snippets using uk.org.retep.logging.Log.debug (Showing top 20 results out of 315)

origin: uk.org.retep.xmpp/core

@Override
@PreDestroy
public void stopService()
{
  serverLog.debug( "Stopping server" );
  service.stopService();
  serverLog.debug( "Server stopped" );
}
origin: uk.org.retep.xmpp/core

@Override
@PostConstruct
public void startService()
    throws MessageException
{
  serverLog.debug( "Starting server" );
  // Ensure the core router has it's server set
  XMPPUtil.setServer( this, coreRouter );
  service.startService();
  serverLog.debug( "Server started" );
}
origin: uk.org.retep.xmpp/core

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 );
}
origin: uk.org.retep.microkernel/jndi

@PostConstruct
public void start()
    throws NamingException
{
  if( StringUtils.isStringEmpty( jndiName ) )
  {
    throw new NullPointerException( "No jndiName defined" );
  }
  if( value == null )
  {
    throw new NullPointerException( "No bean available to bind to " + jndiName );
  }
  JNDIUtils.bind( jndiName, value );
  log.debug( "Bound %s", jndiName, value.getClass().getName() );
}
origin: uk.org.retep.microkernel/jndi

  @PreDestroy
  public void stop()
  {
    if( StringUtils.isStringNotEmpty( jndiName ) && value != null )
    {
      try
      {
        JNDIUtils.unbind( jndiName );
        log.debug( "unbound %s", jndiName );
      }
      catch( Exception ex )
      {
      // ignore
      }
    }
  }
}
origin: uk.org.retep.tools/nio

@Override
protected final void accept( SelectionKey key )
    throws IOException
{
  final ByteBuffer buffer = ByteBuffer.allocate( getDefaultCapacity() );
  buffer.clear();
  final ServerSocketChannel server = ServerSocketChannel.class.cast(
      key.channel() );
  final SocketChannel channel = server.accept();
  final SocketProcessorHandler handler = createSocketProcessorHandler(
      channel );
  
  handler.accept( key );
  getLog().debug( "Accepted connection from %s", channel.socket() );
  registerChannel( channel, SelectionKey.OP_READ, buffer );
}
origin: uk.org.retep.tools/nio

getLog().debug( "UP:%s, LB:%s, Virt:%s P2P:%s %s", ni.isUp(),
        ni.isLoopback(), ni.isVirtual(), ni.isPointToPoint(),
        ni );
origin: uk.org.retep.tools/jaxb

getLog().debug( "Creating JAXBContext" );
boolean notFirst = false;
StringBuilder path = new StringBuilder();
getLog().debug( "Creating JAXBContext %s", path );
origin: uk.org.retep.tools/jaxb

private Unmarshaller createUnmarshaller()
    throws JAXBException
{
  getLog().debug( "Creating Unmarshaller" );
  final Unmarshaller unmarshaller = new UnmarshallerWrapper();
  if( unmarshallerCallback != null )
  {
    unmarshallerCallback.initialiseUnmarshaller( unmarshaller, this );
  }
  return unmarshaller;
}
origin: uk.org.retep.tools/jaxb

private Marshaller createMarshaller()
    throws JAXBException
{
  getLog().debug( "Creating Marshaller" );
  final Marshaller marshaller = new MarshallerWrapper();
  if( marshallerCallback != null )
  {
    marshallerCallback.initialiseMarshaller( marshaller, this );
  }
  return marshaller;
}
origin: uk.org.retep.tools/collections

log.debug( "starting ReferenceQueue" );
  if( log.isDebugEnabled() )
    log.debug( "dequeued reference %s", ref.toString() );
        log.debug( "ReferenceQueue ThreadDeath", td );
    log.debug( "ReferenceQueue InterruptedException", ex );
origin: uk.org.retep.xmpp/core

  public <D> void debug( final XMPPServer<D> server )
      throws JAXBException
  {
    if( getLog().isDebugEnabled() )
    {
      for( Iq iq : iqs )
      {
        getLog().debug( server.marshallXml( iq ) );
      }

      for( Message message : messages )
      {
        getLog().debug( server.marshallXml( message ) );
      }

      for( Presence presence : presences )
      {
        getLog().debug( server.marshallXml( presence ) );
      }
    }
  }
}
origin: uk.org.retep.microkernel.web/jersey

  @Override
  protected void initiate( final ResourceConfig rc, final WebApplication wa )
  {
    try
    {
      // Add all classes discovered by the post processor to the ResourceConfig
      final Set<Class<?>> classes =
          Kernel.getInstance().<KernelComponentPostProcessor>getBean(
          PROCESSOR_BEAN ).getClasses();

      log.debug( "Discovered %d provider/root classes", classes.size() );

      rc.getClasses().addAll( classes );

      log.debug( "%d provider/root classes in config",
            rc.getClasses().size() );

      // Now initiate the WebApplication
      wa.initiate( rc, new KernelComponentProviderFactory() );
    }
    catch( RuntimeException e )
    {
      log.error( "Exception occurred when intialization", e );
      throw e;
    }
  }
}
origin: uk.org.retep.tools/collections

log.debug( "Creating ReferenceQueue" );
origin: uk.org.retep.xmpp.server/multiUserChat

private MucRoom getRoom( final MucService service,
             final Stanza message )
    throws MessageException
{
  final JID jid = message.getTo();
  final MucRoom room = service.getRoomSet().get( jid.getNode() );
  if( room == null )
  {
    if( log.isDebugEnabled() )
    {
      log.debug( "Room %s not found", jid );
    }
  }
  else if( log.isDebugEnabled() )
  {
    log.debug( "Room %s found", jid );
  }
  return room;
}
origin: uk.org.retep.xmpp/core

/**
 * Log the stanza if debugging is enabled.
 * 
 * @param stanza
 */
protected final void logStanza( @Nonnull final Stanza stanza )
{
  if( getLog().isDebugEnabled() )
  {
    try
    {
      // Marshall the entire stanza
      getLog().debug( getServer().marshallXml( stanza ) );
    }
    catch( JAXBException je )
    {
      // Fall back to the short method
      getLog().debug( XMPPUtil.toString( stanza ) );
    }
  }
}
origin: uk.org.retep.microkernel.web/core

  getLog().debug( IGNORED_CONNECTOR, name );
getLog().debug( IGNORED_CONNECTOR, obj );
origin: uk.org.retep.tools/nio

getLog().debug( "Registering selector on serverChannel" );
serverChannel.register( selector, SelectionKey.OP_ACCEPT );
origin: uk.org.retep.tools/collections

/**
 * DelayedRunnableThreadPoolExecutor used just for Reference's. This
 * ThreadPoolExecutor is used primarily by {@link DelayedWeakReference}
 * 
 * @return DelayedRunnableThreadPoolExecutor
 */
public static synchronized DelayedRunnableThreadPoolExecutor getDelayThreadPoolExecutor()
{
  if( delayPool == null )
  {
    if( log.isDebugEnabled() )
    {
      log.debug( "Creating DelayedRunnableThreadPoolExecutor" );
    }
    delayPool = new DelayedRunnableThreadPoolExecutor( 1,
                              10,
                              5L,
                              TimeUnit.MINUTES,
                              getThreadFactory() );
    // Ensure we have the core thread started else the first entry will
    // run immediately
    delayPool.prestartCoreThread();
  }
  return delayPool;
}
origin: uk.org.retep.xmpp/core

serverLog.debug( "Sending\n%s", marshallXml( message ) );
serverLog.debug( "Sending %s", XMPPUtil.toString( message ) );
uk.org.retep.loggingLogdebug

Popular methods of Log

  • error
  • info
  • fatal
  • isDebugEnabled
  • isInfoEnabled
  • warn

Popular in Java

  • Start an intent from android
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • findViewById (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • BoxLayout (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now