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

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

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

Logger.debug介绍

[英]Formats and logs at debug level. avoids autoboxing of integers
[中]调试级别的格式和日志。避免整数的自动装箱

代码示例

代码示例来源: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-webapp

LOG.warn("Can't generate resourceBase as part of webapp tmp dir name: " + e);
LOG.debug(e);

代码示例来源: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;
    LOG.warn("Cannot parse load-on-startup " + s + ". Please use integer");
    LOG.ignore(e);
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-security

/**
   * Close an existing connection
   */
  private void closeConnection ()
  {
    if (_con != null)
    {
      if (LOG.isDebugEnabled()) LOG.debug("Closing db connection for JDBCUserRealm");
      try { _con.close(); }catch (Exception e) {LOG.ignore(e);}
    }
    _con = null;
  }
}

代码示例来源:origin: org.eclipse.jetty/jetty-util

JLOG.warn(msg,cause);
  JLOG.warn(msg);
  JLOG.debug(msg,cause);
  JLOG.debug(msg);
JLOG.ignore(cause);
return;

代码示例来源:origin: org.eclipse.jetty/jetty-util

private synchronized void unhook()
{
  try
  {
    _hooked=false;
    Runtime.getRuntime().removeShutdownHook(this);
  }
  catch(Exception e)
  {
    LOG.ignore(e);
    LOG.debug("shutdown already commenced");
  }
}

代码示例来源: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.debug("ALIAS abs={} can={}",abs,can);
LOG.warn("bad alias for {}: {}",file,e.toString());
LOG.debug(e);
try
  LOG.ignore(e2);
  throw new RuntimeException(e);

代码示例来源:origin: org.eclipse.jetty/jetty-util

private void startReservedThread()
{
  try
  {
    while (true)
    {
      // Not atomic, but there is a re-check in ReservedThread.run().
      int pending = _pending.get();
      int size = _size.get();
      if (pending + size >= _capacity)
        return;
      if (_pending.compareAndSet(pending, pending + 1))
      {
        if (LOG.isDebugEnabled())
          LOG.debug("{} startReservedThread p={}", this, pending + 1);
        _executor.execute(new ReservedThread());
        return;
      }
    }
  }
  catch(RejectedExecutionException e)
  {
    LOG.ignore(e);
  }
}

代码示例来源:origin: org.eclipse.jetty/jetty-util

public String toReplacedString()
{
  if (!isUtf8SequenceComplete())
  {
    _codep=0;
    _state = UTF8_ACCEPT;
    try
    {
      _appendable.append(REPLACEMENT);
    }
    catch(IOException e)
    {
      throw new RuntimeException(e);
    }
    Throwable th= new NotUtf8Exception("incomplete UTF8 sequence");
    LOG.warn(th.toString());
    LOG.debug(th);
  }
  return _appendable.toString();
}

代码示例来源: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-util

if (LOG.isDebugEnabled())
      LOG.debug("run {}", job);
    runJob(job);
    if (LOG.isDebugEnabled())
      LOG.debug("ran {}", job);
    if (Thread.interrupted())
LOG.ignore(e);
LOG.warn(e);
    LOG.warn("Unexpected thread death: {} in {}", this, QueuedThreadPool.this);

代码示例来源:origin: org.eclipse.jetty/jetty-util

private Runnable reservedWait()
  if (LOG.isDebugEnabled())
    LOG.debug("{} waiting", this);
          LOG.ignore(e);
      if (LOG.isDebugEnabled())
        LOG.debug("{} IDLE", this);
      tryExecute(STOP);
  if (LOG.isDebugEnabled())
    LOG.debug("{} task={}", this, task);

代码示例来源:origin: org.eclipse.jetty/jetty-util

LOG.warn(e.toString());
LOG.debug(Log.EXCEPTION,e);
return new BadResource(url,e.toString());

代码示例来源: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-util

if (LOG.isDebugEnabled())
  LOG.debug("Starting java.nio file watching with {}",watchService);
    if (LOG.isDebugEnabled())
      LOG.debug("Waiting for poll({})", wait_time);
    key = wait_time<0?watch.take():wait_time>0?watch.poll(wait_time,updateQuietTimeUnit):watch.poll();
      LOG.warn(e);
      LOG.ignore(e);

相关文章