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

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

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

  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-util

  1. private void setFailed(Throwable th)
  2. {
  3. _state = __FAILED;
  4. if (LOG.isDebugEnabled())
  5. LOG.warn(FAILED+" " + this+": "+th,th);
  6. for (Listener listener : _listeners)
  7. listener.lifeCycleFailure(this,th);
  8. }

代码示例来源: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.warn("Couldn't stop {}{}", unstopped, dmp.toString());
  3. LOG.warn("{} Couldn't stop {}",this,unstopped);

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

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

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

  1. LOG.debug(web_app + " anti-aliased to " + web_app.getAlias());
  2. web_app = context.newResource(web_app.getAlias());
  3. if (LOG.isDebugEnabled())
  4. LOG.debug("Try webapp=" + web_app + ", exists=" + web_app.exists() + ", directory=" + web_app.isDirectory()+" file="+(web_app.getFile()));
  5. LOG.debug("Copy " + web_app + " to " + extractedWebAppDir);
  6. web_app.copyTo(extractedWebAppDir);
  7. LOG.warn("Web application not found " + war);
  8. throw new java.io.FileNotFoundException(war);
  9. if (LOG.isDebugEnabled())
  10. LOG.debug("webapp=" + web_app);
  11. if (LOG.isDebugEnabled())
  12. LOG.debug("context.resourcebase = "+rc);

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

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

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

  1. LOG.debug("Cannot configure webapp after it is started");
  2. return;
  3. LOG.debug("Configuring web-jetty.xml");
  4. if(LOG.isDebugEnabled())
  5. LOG.debug("Configure: "+jetty);
  6. LOG.warn("Error applying {}",jetty);
  7. throw e;

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

  1. if (LOG.isDebugEnabled())
  2. LOG.debug(_xml.toString()+": Calculated metadatacomplete = " + _metaDataComplete + " with version=" + version);

代码示例来源: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. if (roleName != null && roleName.length() > 0 && roleLink != null && roleLink.length() > 0)
  7. if (LOG.isDebugEnabled()) LOG.debug("link role " + roleName + " to " + roleLink + " for " + this);
  8. switch (context.getMetaData().getOrigin(name+".servlet.role-name."+roleName))

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

  1. if (LOG.isDebugEnabled())
  2. LOG.debug("getResources {} {}",name,resources);

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

  1. protected void notComplete(Blocker blocker)
  2. {
  3. LOG.warn("Blocker not complete {}",blocker);
  4. if (LOG.isDebugEnabled())
  5. LOG.debug(new Throwable());
  6. }

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

  1. public void makeTempDirectory (File parent, WebAppContext context)
  2. throws Exception
  3. {
  4. if (parent == null || !parent.exists() || !parent.canWrite() || !parent.isDirectory())
  5. throw new IllegalStateException("Parent for temp dir not configured correctly: "+(parent==null?"null":"writeable="+parent.canWrite()));
  6. //Create a name for the webapp
  7. String temp = getCanonicalNameForWebAppTmpDir(context);
  8. File tmpDir = null;
  9. if (context.isPersistTempDirectory())
  10. {
  11. //if it is to be persisted, make sure it will be the same name
  12. //by not using File.createTempFile, which appends random digits
  13. tmpDir = new File (parent, temp);
  14. }
  15. else
  16. {
  17. //ensure file will always be unique by appending random digits
  18. tmpDir = File.createTempFile(temp, ".dir", parent);
  19. //delete the file that was created
  20. tmpDir.delete();
  21. //and make a directory of the same name
  22. tmpDir.mkdirs();
  23. }
  24. configureTempDirectory(tmpDir, context);
  25. if(LOG.isDebugEnabled())
  26. LOG.debug("Set temp dir "+tmpDir);
  27. context.setTempDirectory(tmpDir);
  28. }

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

  1. @Override
  2. public void succeeded()
  3. {
  4. _lock.lock();
  5. try
  6. {
  7. if (_state == null)
  8. {
  9. _state = SUCCEEDED;
  10. _complete.signalAll();
  11. }
  12. else
  13. {
  14. LOG.warn("Succeeded after {}",_state.toString());
  15. if (LOG.isDebugEnabled())
  16. LOG.debug(_state);
  17. }
  18. }
  19. finally
  20. {
  21. _lock.unlock();
  22. }
  23. }

相关文章