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

  • Start an intent from android
  • getSupportFragmentManager (FragmentActivity)
  • setRequestProperty (URLConnection)
  • onRequestPermissionsResult (Fragment)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Permission (java.security)
    Legacy security code; do not use.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Notification (javax.management)
  • 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