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

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

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

origin: uk.org.retep.xmpp.server/multiUserChat

  @Override
  public void logMessage( final MucRoom room, final Message message )
  {
    if( log.isInfoEnabled() )
    {
      // FIXME figure out why this is needed
      @SuppressWarnings( "unchecked" )
      final List<Body> body = message.getBody();
      if( body.isEmpty() )
      {
        log.info( "%s %s NO_BODY", message.getFrom(),
             room.getJid() );
      }
      else
      {
        for( Body b : body )
        {
          log.info( "%s %s %s",
               message.getFrom(),
               room.getJid(),
               b.getValue() );
        }
      }
    }
  }
};
origin: uk.org.retep.tools/httpd

if( getLog().isInfoEnabled() )
origin: uk.org.retep.xmpp.server/multiUserChat

  /**
   * {@inheritDoc}
   */
  @Override
  public void logMessage( final MucRoom room, final Message message )
  {
    if( getLog().isInfoEnabled() )
    {
      // FIXME another unchecked cast to investigate
      @SuppressWarnings( "unchecked" )
      final List<Body> body = message.getBody();
      if( body.isEmpty() )
      {
        getLog().info( "%s %s NO_BODY", message.getFrom(),
                room.getJid() );
      }
      else
      {
        for( Body b : body )
        {
          getLog().info( "%s %s %s",
                  message.getFrom(),
                  room.getJid(),
                  b.getValue() );
        }
      }

    }
  }
}
uk.org.retep.loggingLogisInfoEnabled

Popular methods of Log

  • debug
  • error
  • info
  • fatal
  • isDebugEnabled
  • warn

Popular in Java

  • Reactive rest calls using spring rest template
  • setContentView (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • getApplicationContext (Context)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Permission (java.security)
    Legacy security code; do not use.
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Github Copilot alternatives
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