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

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

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

Logger.isDebugEnabled介绍

[英]Determine if messages of priority DEBUG will be logged.
[中]确定是否将记录具有调试优先级的消息。

代码示例

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

代码示例来源:origin: undera/jmeter-plugins

  1. @Override
  2. protected byte[] processIO(SampleResult res) throws Exception {
  3. SocketChannel sock = getSocketChannel();
  4. if (!getRequestData().isEmpty()) {
  5. ByteBuffer sendBuf = ByteBuffer.wrap(getRequestData().getBytes()); // cannot cache it because of variable processing
  6. sock.write(sendBuf);
  7. }
  8. sendFile(getFileToSend(), sock);
  9. if (log.isDebugEnabled()) {
  10. log.debug("Sent request");
  11. }
  12. return readResponse(sock, res);
  13. }

相关文章