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

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

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

Logger.forcedLog介绍

暂无

代码示例

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

  1. /**
  2. * Log a message object with the {@link org.apache.log4j.Level#TRACE TRACE} level.
  3. *
  4. * @param message the message object to log.
  5. * @see #debug(Object) for an explanation of the logic applied.
  6. * @since 1.2.12
  7. */
  8. public void trace(Object message) {
  9. if (repository.isDisabled(Level.TRACE_INT)) {
  10. return;
  11. }
  12. if (Level.TRACE.isGreaterOrEqual(this.getEffectiveLevel())) {
  13. forcedLog(FQCN, Level.TRACE, message, null);
  14. }
  15. }

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

  1. /**
  2. * Log a message object with the <code>TRACE</code> level including the
  3. * stack trace of the {@link Throwable}<code>t</code> passed as parameter.
  4. *
  5. * <p>
  6. * See {@link #debug(Object)} form for more detailed information.
  7. * </p>
  8. *
  9. * @param message the message object to log.
  10. * @param t the exception to log, including its stack trace.
  11. * @since 1.2.12
  12. */
  13. public void trace(Object message, Throwable t) {
  14. if (repository.isDisabled(Level.TRACE_INT)) {
  15. return;
  16. }
  17. if (Level.TRACE.isGreaterOrEqual(this.getEffectiveLevel())) {
  18. forcedLog(FQCN, Level.TRACE, message, t);
  19. }
  20. }

代码示例来源:origin: apache/log4j

  1. /**
  2. * Log a message object with the {@link org.apache.log4j.Level#TRACE TRACE} level.
  3. *
  4. * @param message the message object to log.
  5. * @see #debug(Object) for an explanation of the logic applied.
  6. * @since 1.2.12
  7. */
  8. public void trace(Object message) {
  9. if (repository.isDisabled(Level.TRACE_INT)) {
  10. return;
  11. }
  12. if (Level.TRACE.isGreaterOrEqual(this.getEffectiveLevel())) {
  13. forcedLog(FQCN, Level.TRACE, message, null);
  14. }
  15. }

代码示例来源:origin: apache/log4j

  1. /**
  2. * Log a message object with the <code>TRACE</code> level including the
  3. * stack trace of the {@link Throwable}<code>t</code> passed as parameter.
  4. *
  5. * <p>
  6. * See {@link #debug(Object)} form for more detailed information.
  7. * </p>
  8. *
  9. * @param message the message object to log.
  10. * @param t the exception to log, including its stack trace.
  11. * @since 1.2.12
  12. */
  13. public void trace(Object message, Throwable t) {
  14. if (repository.isDisabled(Level.TRACE_INT)) {
  15. return;
  16. }
  17. if (Level.TRACE.isGreaterOrEqual(this.getEffectiveLevel())) {
  18. forcedLog(FQCN, Level.TRACE, message, t);
  19. }
  20. }

代码示例来源:origin: org.jboss.logmanager/log4j-jboss-logmanager

  1. public void trace(Object message, Throwable t) {
  2. if (jblmLogger.isLoggable(org.jboss.logmanager.Level.TRACE)) {
  3. forcedLog(FQCN, Level.TRACE, message, t);
  4. }
  5. }

代码示例来源:origin: org.jboss.logmanager/log4j-jboss-logmanager

  1. public void trace(Object message) {
  2. if (jblmLogger.isLoggable(org.jboss.logmanager.Level.TRACE)) {
  3. forcedLog(FQCN, Level.TRACE, message, null);
  4. }
  5. }

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

  1. /**
  2. * Log a message object with the {@link org.apache.log4j.Level#TRACE TRACE} level.
  3. *
  4. * @param message the message object to log.
  5. * @see #debug(Object) for an explanation of the logic applied.
  6. * @since 1.2.12
  7. */
  8. public void trace(Object message) {
  9. if (repository.isDisabled(Level.TRACE_INT)) {
  10. return;
  11. }
  12. if (Level.TRACE.isGreaterOrEqual(this.getEffectiveLevel())) {
  13. forcedLog(FQCN, Level.TRACE, message, null);
  14. }
  15. }

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

  1. /**
  2. * Log a message object with the {@link org.apache.log4j.Level#TRACE TRACE} level.
  3. *
  4. * @param message the message object to log.
  5. * @see #debug(Object) for an explanation of the logic applied.
  6. * @since 1.2.12
  7. */
  8. public void trace(Object message) {
  9. if (repository.isDisabled(Level.TRACE_INT)) {
  10. return;
  11. }
  12. if (Level.TRACE.isGreaterOrEqual(this.getEffectiveLevel())) {
  13. forcedLog(FQCN, Level.TRACE, message, null);
  14. }
  15. }

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

  1. /**
  2. * Log a message object with the <code>TRACE</code> level including the
  3. * stack trace of the {@link Throwable}<code>t</code> passed as parameter.
  4. *
  5. * <p>
  6. * See {@link #debug(Object)} form for more detailed information.
  7. * </p>
  8. *
  9. * @param message the message object to log.
  10. * @param t the exception to log, including its stack trace.
  11. * @since 1.2.12
  12. */
  13. public void trace(Object message, Throwable t) {
  14. if (repository.isDisabled(Level.TRACE_INT)) {
  15. return;
  16. }
  17. if (Level.TRACE.isGreaterOrEqual(this.getEffectiveLevel())) {
  18. forcedLog(FQCN, Level.TRACE, message, t);
  19. }
  20. }

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

  1. /**
  2. * Log a message object with the <code>TRACE</code> level including the
  3. * stack trace of the {@link Throwable}<code>t</code> passed as parameter.
  4. *
  5. * <p>
  6. * See {@link #debug(Object)} form for more detailed information.
  7. * </p>
  8. *
  9. * @param message the message object to log.
  10. * @param t the exception to log, including its stack trace.
  11. * @since 1.2.12
  12. */
  13. public void trace(Object message, Throwable t) {
  14. if (repository.isDisabled(Level.TRACE_INT)) {
  15. return;
  16. }
  17. if (Level.TRACE.isGreaterOrEqual(this.getEffectiveLevel())) {
  18. forcedLog(FQCN, Level.TRACE, message, t);
  19. }
  20. }

相关文章