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

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

本文整理了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

  1. @Override
  2. public Class<?> loadClass(String name) throws ClassNotFoundException
  3. {
  4. if (_notFound.contains(name))
  5. {
  6. if (LOG.isDebugEnabled())
  7. LOG.debug("Not found cache hit resource {}",name);
  8. throw new ClassNotFoundException(name+": in notfound cache");
  9. }
  10. try
  11. {
  12. return super.loadClass(name);
  13. }
  14. catch (ClassNotFoundException nfe)
  15. {
  16. if (_notFound.add(name))
  17. if (LOG.isDebugEnabled())
  18. {
  19. LOG.debug("Caching not found {}",name);
  20. LOG.debug(nfe);
  21. }
  22. throw nfe;
  23. }
  24. }

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

  1. : _locations.isIncludedAndNotExcluded(location);
  2. if (LOG.isDebugEnabled())
  3. LOG.debug("match {} from {} byName={} byLocation={} in {}",clazz,location,byName,byLocation,this);
  4. LOG.warn(e);

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

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

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

  1. LOG.warn(new Throwable()); // TODO throw ISE?
  2. LOG.warn(new Throwable()); // TODO throw ISE?
  3. if (s.startsWith("t"))
  4. LOG.warn("Deprecated boolean load-on-startup. Please use integer");
  5. order = 1;
  6. LOG.warn("Cannot parse load-on-startup " + s + ". Please use integer");
  7. LOG.ignore(e);
  8. if (roleName != null && roleName.length() > 0 && roleLink != null && roleLink.length() > 0)
  9. if (LOG.isDebugEnabled()) LOG.debug("link role " + roleName + " to " + roleLink + " for " + this);
  10. switch (context.getMetaData().getOrigin(name+".servlet.role-name."+roleName))

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

  1. /**
  2. * Close an existing connection
  3. */
  4. private void closeConnection ()
  5. {
  6. if (_con != null)
  7. {
  8. if (LOG.isDebugEnabled()) LOG.debug("Closing db connection for JDBCUserRealm");
  9. try { _con.close(); }catch (Exception e) {LOG.ignore(e);}
  10. }
  11. _con = null;
  12. }
  13. }

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

  1. JLOG.warn(msg,cause);
  2. JLOG.warn(msg);
  3. JLOG.debug(msg,cause);
  4. JLOG.debug(msg);
  5. JLOG.ignore(cause);
  6. return;

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

  1. private synchronized void unhook()
  2. {
  3. try
  4. {
  5. _hooked=false;
  6. Runtime.getRuntime().removeShutdownHook(this);
  7. }
  8. catch(Exception e)
  9. {
  10. LOG.ignore(e);
  11. LOG.debug("shutdown already commenced");
  12. }
  13. }

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

  1. @Override
  2. public boolean isSystemResource(String name, URL url)
  3. {
  4. if (_systemClasses == null)
  5. loadSystemClasses();
  6. boolean result = _systemClasses.match(name,url);
  7. if (LOG.isDebugEnabled())
  8. LOG.debug("isSystemResource=={} {} {}",result,name,url);
  9. return result;
  10. }

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

  1. if (LOG.isDebugEnabled()) LOG.debug("{} in mapping {} from defaults descriptor is overridden by ",ps,sm,servletName);
  2. LOG.warn("Duplicate mapping from {} to {}", p, servletName);
  3. if (LOG.isDebugEnabled()) LOG.debug("Removed empty mapping {}",sm);
  4. listItor.remove();
  5. if (LOG.isDebugEnabled()) LOG.debug("Removed path {} from mapping {}", p,sm);
  6. if (LOG.isDebugEnabled()) LOG.debug("Added mapping {} ",mapping);
  7. _servletMappings.add(mapping);
  8. return mapping;

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

  1. if (LOG.isDebugEnabled())
  2. LOG.debug("ALIAS abs={} can={}",abs,can);
  3. LOG.warn("bad alias for {}: {}",file,e.toString());
  4. LOG.debug(e);
  5. try
  6. LOG.ignore(e2);
  7. throw new RuntimeException(e);

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

  1. private void startReservedThread()
  2. {
  3. try
  4. {
  5. while (true)
  6. {
  7. // Not atomic, but there is a re-check in ReservedThread.run().
  8. int pending = _pending.get();
  9. int size = _size.get();
  10. if (pending + size >= _capacity)
  11. return;
  12. if (_pending.compareAndSet(pending, pending + 1))
  13. {
  14. if (LOG.isDebugEnabled())
  15. LOG.debug("{} startReservedThread p={}", this, pending + 1);
  16. _executor.execute(new ReservedThread());
  17. return;
  18. }
  19. }
  20. }
  21. catch(RejectedExecutionException e)
  22. {
  23. LOG.ignore(e);
  24. }
  25. }

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

  1. public String toReplacedString()
  2. {
  3. if (!isUtf8SequenceComplete())
  4. {
  5. _codep=0;
  6. _state = UTF8_ACCEPT;
  7. try
  8. {
  9. _appendable.append(REPLACEMENT);
  10. }
  11. catch(IOException e)
  12. {
  13. throw new RuntimeException(e);
  14. }
  15. Throwable th= new NotUtf8Exception("incomplete UTF8 sequence");
  16. LOG.warn(th.toString());
  17. LOG.debug(th);
  18. }
  19. return _appendable.toString();
  20. }

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

  1. if (LOG.isDebugEnabled())
  2. LOG.debug("Not found cache hit resource {}",name);
  3. return null;
  4. if (LOG.isDebugEnabled())
  5. LOG.debug("Caching not found resource {}",name);
  6. _notFound.add(name);

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

  1. if(LOG.isDebugEnabled())
  2. LOG.debug("addJar - {}", fn);
  3. String fnlc=fn.getName().toLowerCase(Locale.ENGLISH);
  4. LOG.warn(Log.EXCEPTION,ex);

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

  1. if (LOG.isDebugEnabled())
  2. LOG.debug("run {}", job);
  3. runJob(job);
  4. if (LOG.isDebugEnabled())
  5. LOG.debug("ran {}", job);
  6. if (Thread.interrupted())
  7. LOG.ignore(e);
  8. LOG.warn(e);
  9. LOG.warn("Unexpected thread death: {} in {}", this, QueuedThreadPool.this);

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

  1. private Runnable reservedWait()
  2. if (LOG.isDebugEnabled())
  3. LOG.debug("{} waiting", this);
  4. LOG.ignore(e);
  5. if (LOG.isDebugEnabled())
  6. LOG.debug("{} IDLE", this);
  7. tryExecute(STOP);
  8. if (LOG.isDebugEnabled())
  9. LOG.debug("{} task={}", this, task);

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

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

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

  1. @Override
  2. public boolean isSystemClass(Class<?> clazz)
  3. {
  4. if (_systemClasses == null)
  5. loadSystemClasses();
  6. boolean result = _systemClasses.match(clazz);
  7. if (LOG.isDebugEnabled())
  8. LOG.debug("isSystemClass=={} {}",result,clazz);
  9. return result;
  10. }

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

  1. LOG.warn(new Throwable()); // TODO throw ISE?
  2. if (LOG.isDebugEnabled())
  3. LOG.debug("ContextParam: " + name + "=" + value);

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

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

相关文章