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

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

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

Logger.warn介绍

[英]Logs the given message at warn level, with Throwable information.
[中]

代码示例

代码示例来源: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);
    LOG.warn(new Throwable()); // TODO throw ISE?
if (roleName != null && roleName.length() > 0 && roleLink != null && roleLink.length() > 0)
      LOG.warn(new Throwable()); // TODO throw ISE?
  LOG.warn("Ignored invalid security-role-ref element: " + "servlet-name=" + holder.getName() + ", " + securityRef);
      LOG.warn(new Throwable()); // TODO throw ISE?
    LOG.warn(new Throwable()); // TODO throw ISE?
    LOG.warn(new Throwable()); // TODO throw ISE?
    LOG.warn(new Throwable()); // TODO throw ISE?

代码示例来源: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-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 void verifyIndirectTypes(Class<?> superClazz, Class<?> clazz, String typeName)
{
  try
  {
    // Report on super class deprecation too
    while (superClazz != null && superClazz != Object.class)
    {
      Deprecated supDepr = superClazz.getAnnotation(Deprecated.class);
      if (supDepr != null)
      {
        LOG.warn("Using indirect @Deprecated {} {} - (seen from {})",typeName,superClazz.getName(),clazz);
      }
      superClazz = superClazz.getSuperclass();
    }
  }
  catch (Throwable t)
  {
    LOG.ignore(t);
  }
}

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

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

if (LOG.isDebugEnabled())
    LOG.warn("Couldn't stop {}{}", unstopped, dmp.toString());
    LOG.warn("{} Couldn't stop {}",this,unstopped);

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

@Override
protected void onException(Throwable ex)
{
  if (ex instanceof EofException)
  {
    _log.ignore(ex);
    return;
  }
  _log.warn(ex.toString());
  _log.debug(ex);
  if (!response.isCommitted())
  {
    response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
  }
}

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

/** 
 * @see org.eclipse.jetty.util.preventers.AbstractLeakPreventer#prevent(java.lang.ClassLoader)
 */
@Override
public void prevent(ClassLoader loader)
{
  try
  {
    Class<?> clazz = Class.forName("sun.misc.GC");
    Method requestLatency = clazz.getMethod("requestLatency", new Class[] {long.class});
    requestLatency.invoke(null, Long.valueOf(Long.MAX_VALUE-1));
  }
  catch (ClassNotFoundException e)
  {
    LOG.ignore(e);
  }
  catch (Exception e)
  {
    LOG.warn(e);
  }
}

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

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

代码示例来源: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: com.ovea.tajin.server/tajin-server-jetty9

@Override
public int getSessions()
{
  int sessions=super.getSessions();
  if (LOG.isDebugEnabled())
  {
    if (_sessions.size()!=sessions)
      LOG.warn("sessions: "+_sessions.size()+"!="+sessions);
  }
  return sessions;
}

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

private void execute(Runnable task)
{
  try
  {
    _executor.execute(task);
  }
  catch (RejectedExecutionException e)
  {
    if (isRunning())
      LOG.warn(e);
    else
      LOG.ignore(e);
    if (task instanceof Closeable)
    {
      try
      {
        ((Closeable)task).close();
      }
      catch (Throwable e2)
      {
        LOG.ignore(e2);
      }
    }
  }
}

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

LOG.warn("Retrying list:"+e);
LOG.debug(e);
close();
list = listEntries();

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

相关文章