org.apache.log.Logger.isInfoEnabled()方法的使用及代码示例

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

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

Logger.isInfoEnabled介绍

[英]Determine if messages of priority INFO will be logged.
[中]确定是否将记录优先级信息的消息。

代码示例

代码示例来源:origin: org.freemarker/freemarker

  1. @Override
  2. public boolean isInfoEnabled() {
  3. return logger.isInfoEnabled();
  4. }

代码示例来源:origin: commons-logging/commons-logging

  1. /**
  2. * Checks whether the <code>LogKit</code> logger will log messages of priority <code>INFO</code>.
  3. */
  4. public boolean isInfoEnabled() {
  5. return getLogger().isInfoEnabled();
  6. }

代码示例来源:origin: camunda/camunda-bpm-platform

  1. /**
  2. * Checks whether the <code>LogKit</code> logger will log messages of priority <code>INFO</code>.
  3. */
  4. public boolean isInfoEnabled() {
  5. return getLogger().isInfoEnabled();
  6. }

代码示例来源:origin: org.apache.avalon.framework/avalon-framework-impl

  1. /**
  2. * Determine if messages of priority "info" will be logged.
  3. *
  4. * @return true if "info" messages will be logged
  5. */
  6. public final boolean isInfoEnabled()
  7. {
  8. return m_logger.isInfoEnabled();
  9. }

代码示例来源:origin: org.freemarker/com.springsource.freemarker

  1. public boolean isInfoEnabled()
  2. {
  3. return logger.isInfoEnabled();
  4. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker

  1. @Override
  2. public boolean isInfoEnabled() {
  3. return logger.isInfoEnabled();
  4. }

代码示例来源:origin: org.freemarker/freemarker-gae

  1. @Override
  2. public boolean isInfoEnabled() {
  3. return logger.isInfoEnabled();
  4. }

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.apache.commons.logging

  1. /**
  2. * Checks whether the <code>LogKit</code> logger will log messages of priority <code>INFO</code>.
  3. */
  4. public boolean isInfoEnabled() {
  5. return getLogger().isInfoEnabled();
  6. }

代码示例来源:origin: apache/activemq-artemis

  1. /**
  2. * Checks whether the <code>LogKit</code> logger will log messages of priority <code>INFO</code>.
  3. */
  4. public boolean isInfoEnabled() {
  5. return getLogger().isInfoEnabled();
  6. }

代码示例来源:origin: harbby/presto-connectors

  1. /**
  2. * Checks whether the <code>LogKit</code> logger will log messages of priority <code>INFO</code>.
  3. */
  4. public boolean isInfoEnabled() {
  5. return getLogger().isInfoEnabled();
  6. }

代码示例来源:origin: apache/activemq-artemis

  1. /**
  2. * Checks whether the <code>LogKit</code> logger will log messages of priority <code>INFO</code>.
  3. */
  4. public boolean isInfoEnabled() {
  5. return getLogger().isInfoEnabled();
  6. }

代码示例来源:origin: org.apache.activemq/artemis-jms-client-all

  1. /**
  2. * Checks whether the <code>LogKit</code> logger will log messages of priority <code>INFO</code>.
  3. */
  4. public boolean isInfoEnabled() {
  5. return getLogger().isInfoEnabled();
  6. }

代码示例来源:origin: org.apache.openjpa/openjpa-all

  1. /**
  2. * Checks whether the <code>LogKit</code> logger will log messages of priority <code>INFO</code>.
  3. */
  4. public boolean isInfoEnabled() {
  5. return getLogger().isInfoEnabled();
  6. }

代码示例来源:origin: org.apache.avalon.logkit/avalon-logkit

  1. /**
  2. * Log a info priority event.
  3. *
  4. * @param message the message
  5. */
  6. public final void info( final String message )
  7. {
  8. if( isInfoEnabled() )
  9. {
  10. output( Priority.INFO, message, null );
  11. }
  12. }

代码示例来源:origin: org.apache.tomcat.extras/tomcat-extras-juli-adapters

  1. /**
  2. * Checks whether the <code>LogKit</code> logger will log messages of priority <code>INFO</code>.
  3. */
  4. public boolean isInfoEnabled() {
  5. return getLogger().isInfoEnabled();
  6. }

代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded

  1. /**
  2. * Checks whether the <code>LogKit</code> logger will log messages of priority <code>INFO</code>.
  3. */
  4. public boolean isInfoEnabled() {
  5. return getLogger().isInfoEnabled();
  6. }

代码示例来源:origin: Nextdoor/bender

  1. /**
  2. * Checks whether the <code>LogKit</code> logger will log messages of priority <code>INFO</code>.
  3. */
  4. public boolean isInfoEnabled() {
  5. return getLogger().isInfoEnabled();
  6. }

代码示例来源:origin: org.apache.avalon.logkit/avalon-logkit

  1. /**
  2. * Log a info priority event.
  3. *
  4. * @param message the message
  5. * @param throwable the throwable
  6. */
  7. public final void info( final String message, final Throwable throwable )
  8. {
  9. if( isInfoEnabled() )
  10. {
  11. output( Priority.INFO, message, throwable );
  12. }
  13. }

代码示例来源:origin: org.apache.velocity/com.springsource.org.apache.velocity

  1. /**
  2. * Checks to see whether the specified level is enabled.
  3. * @param level
  4. * @return True if the specified level is enabled.
  5. */
  6. public boolean isLevelEnabled(int level)
  7. {
  8. switch (level)
  9. {
  10. // For Avalon, no Trace exists. Log at debug level.
  11. case TRACE_ID:
  12. case DEBUG_ID:
  13. return logger.isDebugEnabled();
  14. case INFO_ID:
  15. return logger.isInfoEnabled();
  16. case WARN_ID:
  17. return logger.isWarnEnabled();
  18. case ERROR_ID:
  19. return logger.isErrorEnabled();
  20. default:
  21. return true;
  22. }
  23. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.velocity

  1. /**
  2. * Checks to see whether the specified level is enabled.
  3. * @param level
  4. * @return True if the specified level is enabled.
  5. */
  6. public boolean isLevelEnabled(int level)
  7. {
  8. switch (level)
  9. {
  10. // For Avalon, no Trace exists. Log at debug level.
  11. case TRACE_ID:
  12. case DEBUG_ID:
  13. return logger.isDebugEnabled();
  14. case INFO_ID:
  15. return logger.isInfoEnabled();
  16. case WARN_ID:
  17. return logger.isWarnEnabled();
  18. case ERROR_ID:
  19. return logger.isErrorEnabled();
  20. default:
  21. return true;
  22. }
  23. }

相关文章