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

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

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

origin: uk.org.retep.xmpp/core

  @SuppressWarnings( "unchecked" )
  public static final <T> XMPPLogic process( final Object data1,
                        final Object data2,
                        final XMPPLogic logic,
                        final XMPPServer<T> server,
                        final Stanza<?, ?> stanza )
      throws MessageException
  {
    XMPPLogic l = logic;
    while( l != null )
    {
      if( log.isDebugEnabled() )
      {
        debug( l, stanza );
      }
      l = l.process( server, data1, data2, stanza );
    }

    return null;
  }
}
origin: uk.org.retep.xmpp/core

@SuppressWarnings( "unchecked" )
public static final <T> XMPPLogic process( final Object data1,
                      final Object data2,
                      final XMPPLogic logic,
                      final XMPPServer<T> server,
                      final Iq<?, ?> iq )
    throws MessageException
{
  XMPPLogic l = logic;
  while( l != null )
  {
    if( log.isDebugEnabled() )
    {
      debug( l, iq );
    }
    l = l.process( server, data1, data2, iq );
  }
  return null;
}
origin: uk.org.retep.xmpp/core

@SuppressWarnings( "unchecked" )
public static final <T> XMPPLogic process( final Object data1,
                      final Object data2,
                      final XMPPLogic logic,
                      final XMPPServer<T> server,
                      final Message<?, ?> message )
    throws MessageException
{
  XMPPLogic l = logic;
  while( l != null )
  {
    if( log.isDebugEnabled() )
    {
      debug( l, message );
    }
    l = l.process( server, data1, data2, message );
  }
  return null;
}
origin: uk.org.retep.xmpp/core

@SuppressWarnings( "unchecked" )
public static final <T> XMPPLogic process( final Object data1,
                      final Object data2,
                      final XMPPLogic logic,
                      final XMPPServer<T> server,
                      final Presence<?, ?> presence )
    throws MessageException
{
  XMPPLogic l = logic;
  while( l != null )
  {
    if( log.isDebugEnabled() )
    {
      debug( l, presence );
    }
    l = l.process( server, data1, data2, presence );
  }
  return null;
}
origin: uk.org.retep.tools/collections

@Override
public void run()
  if( log.isDebugEnabled() )
      if( log.isDebugEnabled() )
          if( log.isDebugEnabled() )
      if( log.isDebugEnabled() )
origin: uk.org.retep.tools/collections

if( log.isDebugEnabled() )
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.net/socket

  /**
   * {@inheritDoc}
   */
  @Override
  public void consume(
      final uk.org.retep.util.messaging.Message<JID> message )
      throws MessageException
  {
    final Stanza stanza = ( Stanza ) message;

    if( getLog().isDebugEnabled() )
    {
      logStanza( stanza );
    }

    try
    {
      stack.send( stanza );
    }
    catch( Exception ex )
    {
      throw new MessageException( ex );
    }
  }
}
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

  throws MessageException
if( getLog().isDebugEnabled() )
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.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.xmpp/core

  throws MessageException
if( serverLog.isDebugEnabled() )
uk.org.retep.loggingLogisDebugEnabled

Popular methods of Log

  • debug
  • error
  • info
  • fatal
  • isInfoEnabled
  • warn

Popular in Java

  • Creating JSON documents from java classes using gson
  • onCreateOptionsMenu (Activity)
  • getSystemService (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • 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