org.ocpsoft.logging.Logger.info()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(5.7k)|赞(0)|评价(0)|浏览(301)

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

Logger.info介绍

暂无

代码示例

代码示例来源:origin: ocpsoft/rewrite

  1. public RewritePhaseListener()
  2. {
  3. log.info(RewritePhaseListener.class.getSimpleName() + " starting up.");
  4. }

代码示例来源:origin: org.ocpsoft.rewrite/rewrite-integration-faces

  1. public RewritePhaseListener()
  2. {
  3. log.info(RewritePhaseListener.class.getSimpleName() + " starting up.");
  4. }

代码示例来源:origin: ocpsoft/rewrite

  1. @Override
  2. public void destroy()
  3. {
  4. log.info("RewriteFilter shutting down...");
  5. for (RewriteProvider<ServletContext, Rewrite> provider : providers) {
  6. if (provider instanceof ServletRewriteProvider)
  7. ((ServletRewriteProvider<?>) provider).shutdown(servletContext);
  8. }
  9. log.info("RewriteFilter deactivated.");
  10. }

代码示例来源:origin: org.ocpsoft.rewrite/rewrite-impl-servlet

  1. @Override
  2. public void destroy()
  3. {
  4. log.info("RewriteFilter shutting down...");
  5. for (RewriteProvider<ServletContext, Rewrite> provider : providers) {
  6. if (provider instanceof ServletRewriteProvider)
  7. ((ServletRewriteProvider<?>) provider).shutdown(servletContext);
  8. }
  9. log.info("RewriteFilter deactivated.");
  10. }

代码示例来源:origin: ocpsoft/rewrite

  1. @Override
  2. public void destroy()
  3. {
  4. log.info("RewriteFilter shutting down...");
  5. for (RewriteProvider<ServletContext, Rewrite> provider : providers) {
  6. if (provider instanceof ServletRewriteProvider)
  7. ((ServletRewriteProvider<?>) provider).shutdown(servletContext);
  8. }
  9. log.info("RewriteFilter deactivated.");
  10. }

代码示例来源:origin: ocpsoft/rewrite

  1. public static <T> void logLoadedServices(final Logger log, final Class<T> type, final List<? extends T> services)
  2. {
  3. log.info("Loaded [" + services.size() + "] " + type.getName() + " ["
  4. + joinTypeNames(services) + "]");
  5. }

代码示例来源:origin: ocpsoft/rewrite

  1. @Override
  2. public void handle(final Rewrite event, final EvaluationContext context, final Object result)
  3. {
  4. if (event instanceof HttpInboundServletRewrite)
  5. {
  6. if (result instanceof String)
  7. {
  8. log.info("Storing Invocation result [" + result + "] as deferred navigation string.");
  9. ((HttpInboundServletRewrite) event).getRequest().setAttribute(QUEUED_NAVIGATION, result);
  10. }
  11. }
  12. }

代码示例来源:origin: org.ocpsoft.rewrite/rewrite-integration-faces

  1. @Override
  2. public void handle(final Rewrite event, final EvaluationContext context, final Object result)
  3. {
  4. if (event instanceof HttpInboundServletRewrite)
  5. {
  6. if (result instanceof String)
  7. {
  8. log.info("Storing Invocation result [" + result + "] as deferred navigation string.");
  9. ((HttpInboundServletRewrite) event).getRequest().setAttribute(QUEUED_NAVIGATION, result);
  10. }
  11. }
  12. }

代码示例来源:origin: ocpsoft/rewrite

  1. public static <T> void logLoadedServices(final Logger log, final Class<T> type, final List<? extends T> services)
  2. {
  3. log.info("Loaded [" + services.size() + "] " + type.getName() + " ["
  4. + joinTypeNames(services) + "]");
  5. }

代码示例来源:origin: ocpsoft/rewrite

  1. log.info(buildLogOutput(event).toString());
  2. break;
  3. case WARN:

代码示例来源:origin: ocpsoft/rewrite

  1. log.info(buildLogOutput(event).toString());
  2. break;
  3. case WARN:

代码示例来源:origin: ocpsoft/rewrite

  1. @Override
  2. public void perform(Rewrite event, EvaluationContext context)
  3. {
  4. String message = messageBuilder.build(event, context);
  5. switch (level)
  6. {
  7. case TRACE:
  8. if (log.isTraceEnabled())
  9. log.trace(message);
  10. break;
  11. case DEBUG:
  12. if (log.isDebugEnabled())
  13. log.debug(message);
  14. break;
  15. case INFO:
  16. if (log.isInfoEnabled())
  17. log.info(message);
  18. break;
  19. case WARN:
  20. if (log.isWarnEnabled())
  21. log.warn(message);
  22. break;
  23. case ERROR:
  24. if (log.isErrorEnabled())
  25. log.error(message);
  26. break;
  27. default:
  28. break;
  29. }
  30. }

代码示例来源:origin: ocpsoft/rewrite

  1. @Override
  2. public void perform(Rewrite event, EvaluationContext context)
  3. {
  4. String message = messageBuilder.build(event, context);
  5. switch (level)
  6. {
  7. case TRACE:
  8. if (log.isTraceEnabled())
  9. log.trace(message);
  10. break;
  11. case DEBUG:
  12. if (log.isDebugEnabled())
  13. log.debug(message);
  14. break;
  15. case INFO:
  16. if (log.isInfoEnabled())
  17. log.info(message);
  18. break;
  19. case WARN:
  20. if (log.isWarnEnabled())
  21. log.warn(message);
  22. break;
  23. case ERROR:
  24. if (log.isErrorEnabled())
  25. log.error(message);
  26. break;
  27. default:
  28. break;
  29. }
  30. }

代码示例来源:origin: ocpsoft/rewrite

  1. log.info("RewriteFilter starting up...");
  2. log.info(Version.getFullName() + " initialized.");

代码示例来源:origin: org.ocpsoft.rewrite/rewrite-impl-servlet

  1. log.info("RewriteFilter starting up...");
  2. log.info(Version.getFullName() + " initialized.");

代码示例来源:origin: ocpsoft/rewrite

  1. log.info("RewriteFilter starting up...");
  2. log.info(Version.getFullName() + " initialized.");

代码示例来源:origin: org.jboss.windup.config/windup-config-api

  1. @Override
  2. public void perform(Rewrite event, EvaluationContext context)
  3. {
  4. // Quite verbose. TODO: ... See https://github.com/ocpsoft/logging/issues/1
  5. switch (level)
  6. {
  7. case TRACE:
  8. if (log.isTraceEnabled())
  9. log.trace(messageBuilder.build(event, context));
  10. break;
  11. case DEBUG:
  12. if (log.isDebugEnabled())
  13. log.debug(messageBuilder.build(event, context));
  14. break;
  15. case INFO:
  16. if (log.isInfoEnabled())
  17. log.info(messageBuilder.build(event, context));
  18. break;
  19. case WARN:
  20. if (log.isWarnEnabled())
  21. log.warn(messageBuilder.build(event, context));
  22. break;
  23. case ERROR:
  24. if (log.isErrorEnabled())
  25. log.error(messageBuilder.build(event, context));
  26. break;
  27. }
  28. }

代码示例来源:origin: windup/windup

  1. @Override
  2. public void perform(Rewrite event, EvaluationContext context)
  3. {
  4. // Quite verbose. TODO: ... See https://github.com/ocpsoft/logging/issues/1
  5. switch (level)
  6. {
  7. case TRACE:
  8. if (log.isTraceEnabled())
  9. log.trace(messageBuilder.build(event, context));
  10. break;
  11. case DEBUG:
  12. if (log.isDebugEnabled())
  13. log.debug(messageBuilder.build(event, context));
  14. break;
  15. case INFO:
  16. if (log.isInfoEnabled())
  17. log.info(messageBuilder.build(event, context));
  18. break;
  19. case WARN:
  20. if (log.isWarnEnabled())
  21. log.warn(messageBuilder.build(event, context));
  22. break;
  23. case ERROR:
  24. if (log.isErrorEnabled())
  25. log.error(messageBuilder.build(event, context));
  26. break;
  27. }
  28. }

相关文章