org.eclipse.jetty.util.log.Logger.isDebugEnabled()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(6.9k)|赞(0)|评价(0)|浏览(188)

本文整理了Java中org.eclipse.jetty.util.log.Logger.isDebugEnabled()方法的一些代码示例,展示了Logger.isDebugEnabled()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.isDebugEnabled()方法的具体详情如下:
包路径:org.eclipse.jetty.util.log.Logger
类名称:Logger
方法名:isDebugEnabled

Logger.isDebugEnabled介绍

暂无

代码示例

代码示例来源: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 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(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 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("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();
  }
}

相关文章