Codota Logo
Logger.isDebugEnabled
Code IndexAdd Codota to your IDE (free)

How to use
isDebugEnabled
method
in
org.eclipse.jetty.util.log.Logger

Best Java code snippets using org.eclipse.jetty.util.log.Logger.isDebugEnabled (Showing top 20 results out of 621)

Refine searchRefine arrow

  • Logger.debug
  • Logger.warn
  • Common ways to obtain Logger
private void myMethod () {
Logger l =
  • Codota IconLog.getRootLogger()
  • Codota IconString name;new Slf4jLog(name)
  • Codota IconString name;new JavaUtilLog(name)
  • Smart code suggestions by Codota
}
origin: org.eclipse.jetty/jetty-webapp

@Override
public Class<?> loadClass(String name) throws ClassNotFoundException
{
  if (_notFound.contains(name))
  {
    if (LOG.isDebugEnabled())
      LOG.debug("Not found cache hit resource {}",name);
    throw new ClassNotFoundException(name+": in notfound cache");
  }
  try
  {
    return super.loadClass(name);
  }
  catch (ClassNotFoundException nfe)
  {
    if (_notFound.add(name))
      if (LOG.isDebugEnabled())
      {
        LOG.debug("Caching not found {}",name);
        LOG.debug(nfe);
      }
    throw nfe; 
  }
}
origin: org.eclipse.jetty/jetty-webapp

    : _locations.isIncludedAndNotExcluded(location);
if (LOG.isDebugEnabled())
  LOG.debug("match {} from {} byName={} byLocation={} in {}",clazz,location,byName,byLocation,this);
LOG.warn(e);
origin: org.eclipse.jetty/jetty-util

private void setFailed(Throwable th)
{
  _state = __FAILED;
  if (LOG.isDebugEnabled())
    LOG.warn(FAILED+" " + this+": "+th,th);
  for (Listener listener : _listeners)
    listener.lifeCycleFailure(this,th);
}
origin: org.eclipse.jetty/jetty-webapp

@Override
public boolean isSystemResource(String name, URL url)
{
  if (_systemClasses == null)
    loadSystemClasses();
  boolean result = _systemClasses.match(name,url);
  if (LOG.isDebugEnabled())
    LOG.debug("isSystemResource=={} {} {}",result,name,url);
  return result;
}
origin: org.eclipse.jetty/jetty-webapp

            if (LOG.isDebugEnabled()) LOG.debug("{} in mapping {} from defaults descriptor is overridden by ",ps,sm,servletName);
            LOG.warn("Duplicate mapping from {} to {}", p, servletName);
            if (LOG.isDebugEnabled()) LOG.debug("Removed empty mapping {}",sm);
            listItor.remove();
            if (LOG.isDebugEnabled()) LOG.debug("Removed path {} from mapping {}", p,sm);
if (LOG.isDebugEnabled()) LOG.debug("Added mapping {} ",mapping);
_servletMappings.add(mapping);
return mapping;
origin: org.eclipse.jetty/jetty-util

if (LOG.isDebugEnabled())
    LOG.warn("Couldn't stop {}{}", unstopped, dmp.toString());
    LOG.warn("{} Couldn't stop {}",this,unstopped);
origin: org.eclipse.jetty/jetty-webapp

if (LOG.isDebugEnabled())
  LOG.debug("Not found cache hit resource {}",name);
return null;
  if (LOG.isDebugEnabled())
    LOG.debug("Caching not found resource {}",name);
  _notFound.add(name);
origin: org.eclipse.jetty/jetty-webapp

if(LOG.isDebugEnabled())
  LOG.debug("addJar - {}", fn);
String fnlc=fn.getName().toLowerCase(Locale.ENGLISH);
LOG.warn(Log.EXCEPTION,ex);
origin: org.eclipse.jetty/jetty-webapp

@Override
public boolean isSystemClass(Class<?> clazz)
{
  if (_systemClasses == null)
    loadSystemClasses();
  boolean result = _systemClasses.match(clazz);
  if (LOG.isDebugEnabled())
    LOG.debug("isSystemClass=={} {}",result,clazz);
  return result;
}
origin: org.eclipse.jetty/jetty-webapp

    LOG.warn(new Throwable()); // TODO throw ISE?
if (LOG.isDebugEnabled())
  LOG.debug("ContextParam: " + name + "=" + value);
origin: org.eclipse.jetty/jetty-webapp

@Override
public boolean isServerResource(String name, URL url)
{
  if (_serverClasses == null)
    loadServerClasses();
  boolean result =  _serverClasses.match(name,url);
  if (LOG.isDebugEnabled())
    LOG.debug("isServerResource=={} {} {}",result,name,url);
  return result;
}

origin: org.eclipse.jetty/jetty-webapp

  LOG.debug(web_app + " anti-aliased to " + web_app.getAlias());
  web_app = context.newResource(web_app.getAlias());
if (LOG.isDebugEnabled())
  LOG.debug("Try webapp=" + web_app + ", exists=" + web_app.exists() + ", directory=" + web_app.isDirectory()+" file="+(web_app.getFile()));
    LOG.debug("Copy " + web_app + " to " + extractedWebAppDir);
    web_app.copyTo(extractedWebAppDir);
  LOG.warn("Web application not found " + war);
  throw new java.io.FileNotFoundException(war);
if (LOG.isDebugEnabled())
  LOG.debug("webapp=" + web_app);
if (LOG.isDebugEnabled())
  LOG.debug("context.resourcebase = "+rc);
origin: org.eclipse.jetty/jetty-webapp

@Override
public boolean isServerClass(Class<?> clazz)
{
  if (_serverClasses == null)
    loadServerClasses();
  boolean result = _serverClasses.match(clazz);
  if (LOG.isDebugEnabled())
    LOG.debug("isServerClass=={} {}",result,clazz);
  return result;
}
origin: org.eclipse.jetty/jetty-webapp

  LOG.debug("Cannot configure webapp after it is started");
  return;
LOG.debug("Configuring web-jetty.xml");
    if(LOG.isDebugEnabled())
      LOG.debug("Configure: "+jetty);
      LOG.warn("Error applying {}",jetty);
      throw e;
origin: org.eclipse.jetty/jetty-webapp

if (LOG.isDebugEnabled())
  LOG.debug(_xml.toString()+": Calculated metadatacomplete = " + _metaDataComplete + " with version=" + version);
origin: org.eclipse.jetty/jetty-webapp

    LOG.warn(new Throwable()); // TODO throw ISE?
    LOG.warn(new Throwable()); // TODO throw ISE?
if (s.startsWith("t"))
  LOG.warn("Deprecated boolean load-on-startup.  Please use integer");
  order = 1;
if (roleName != null && roleName.length() > 0 && roleLink != null && roleLink.length() > 0)
  if (LOG.isDebugEnabled()) LOG.debug("link role " + roleName + " to " + roleLink + " for " + this);
  switch (context.getMetaData().getOrigin(name+".servlet.role-name."+roleName))
origin: org.eclipse.jetty/jetty-webapp

if (LOG.isDebugEnabled())
  LOG.debug("getResources {} {}",name,resources);
origin: org.eclipse.jetty/jetty-util

protected void notComplete(Blocker blocker)
{
  LOG.warn("Blocker not complete {}",blocker);
  if (LOG.isDebugEnabled())
    LOG.debug(new Throwable());
}

origin: org.eclipse.jetty/jetty-webapp

public void makeTempDirectory (File parent, WebAppContext context)
    throws Exception
{
  if (parent == null || !parent.exists() || !parent.canWrite() || !parent.isDirectory())
    throw new IllegalStateException("Parent for temp dir not configured correctly: "+(parent==null?"null":"writeable="+parent.canWrite()));
  //Create a name for the webapp     
  String temp = getCanonicalNameForWebAppTmpDir(context);
  File tmpDir = null;
  if (context.isPersistTempDirectory())
  {
    //if it is to be persisted, make sure it will be the same name
    //by not using File.createTempFile, which appends random digits
    tmpDir = new File (parent, temp);
  }
  else
  {
    //ensure file will always be unique by appending random digits
    tmpDir = File.createTempFile(temp, ".dir", parent);
    //delete the file that was created
    tmpDir.delete();
    //and make a directory of the same name
    tmpDir.mkdirs();
  }
  configureTempDirectory(tmpDir, context);
  if(LOG.isDebugEnabled())
    LOG.debug("Set temp dir "+tmpDir);
  context.setTempDirectory(tmpDir);
}
origin: org.eclipse.jetty/jetty-util

@Override
public void succeeded()
{
  _lock.lock();
  try
  {
    if (_state == null)
    {
      _state = SUCCEEDED;
      _complete.signalAll();
    }
    else
    {
      LOG.warn("Succeeded after {}",_state.toString());
      if (LOG.isDebugEnabled())
        LOG.debug(_state);
    }
  }
  finally
  {
    _lock.unlock();
  }
}
org.eclipse.jetty.util.logLoggerisDebugEnabled

Popular methods of Logger

  • debug
    Logs the given Throwable information at debug level
  • warn
    Logs the given Throwable information at warn level
  • info
    Logs the given Throwable information at info level
  • ignore
    Ignore an exception.This should be used rather than an empty catch block.
  • getName
  • getLogger
  • setDebugEnabled
    Mutator used to turn debug on programmatically.

Popular in Java

  • Reactive rest calls using spring rest template
  • onRequestPermissionsResult (Fragment)
  • orElseThrow (Optional)
  • setContentView (Activity)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Option (scala)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now