Examples of FormattingTuple


Examples of org.slf4j.helpers.FormattingTuple

  public void debug(String format, Object[] argArray) {
    if (!logger.isDebugEnabled())
      return;

    if (instanceofLAL) {
      FormattingTuple ft = MessageFormatter.arrayFormat(format, argArray);
      ((LocationAwareLogger) logger).log(null, fqcn,
          LocationAwareLogger.DEBUG_INT, ft.getMessage(), ft.getArgArray(), ft
              .getThrowable());
    } else {
      logger.debug(format, argArray);
    }
  }
View Full Code Here

Examples of org.slf4j.helpers.FormattingTuple

   */
  public void debug(Marker marker, String format, Object arg) {
    if (!logger.isDebugEnabled())
      return;
    if (instanceofLAL) {
      FormattingTuple ft = MessageFormatter.format(format, arg);
      ((LocationAwareLogger) logger).log(marker, fqcn,
          LocationAwareLogger.DEBUG_INT, ft.getMessage(), ft.getArgArray(), ft
              .getThrowable());
    } else {
      logger.debug(marker, format, arg);
    }
  }
View Full Code Here

Examples of org.slf4j.helpers.FormattingTuple

  public void debug(Marker marker, String format, Object[] argArray) {
    if (!logger.isDebugEnabled())
      return;
    if (instanceofLAL) {

      FormattingTuple ft = MessageFormatter.arrayFormat(format, argArray);
      ((LocationAwareLogger) logger).log(marker, fqcn,
          LocationAwareLogger.DEBUG_INT, ft.getMessage(), argArray, ft
              .getThrowable());
    } else {
      logger.debug(marker, format, argArray);
    }
  }
View Full Code Here

Examples of org.slf4j.helpers.FormattingTuple

      if (argArray.length < ENTRY_MESSAGE_ARRAY_LEN) {
        messagePattern = ENTRY_MESSAGE_ARRAY[argArray.length];
      } else {
        messagePattern = buildMessagePattern(argArray.length);
      }
      FormattingTuple tp = MessageFormatter.arrayFormat(messagePattern, argArray);
      ((LocationAwareLogger) logger).log(ENTRY_MARKER, FQCN,
          LocationAwareLogger.TRACE_INT, tp.getMessage(), argArray, tp.getThrowable());
    }
  }
View Full Code Here

Examples of org.slf4j.helpers.FormattingTuple

   * @param result
   *          The result of the method being exited
   */
  public void exit(Object result) {
    if (instanceofLAL && logger.isTraceEnabled(ENTRY_MARKER)) {
      FormattingTuple tp = MessageFormatter.format(EXIT_MESSAGE_1, result);
      ((LocationAwareLogger) logger).log(EXIT_MARKER, FQCN,
          LocationAwareLogger.TRACE_INT, tp.getMessage(),
          new Object[] { result }, tp.getThrowable());
    }
  }
View Full Code Here

Examples of org.slf4j.helpers.FormattingTuple

   * @param arg
   *          the argument
   */
  public void trace(String format, Object arg) {
    if (logger.isLoggable(Level.FINEST)) {
      FormattingTuple ft = MessageFormatter.format(format, arg);
      log(SELF, Level.FINEST, ft.getMessage(), ft.getThrowable());
    }
  }
View Full Code Here

Examples of org.slf4j.helpers.FormattingTuple

   * @param arg2
   *          the second argument
   */
  public void trace(String format, Object arg1, Object arg2) {
    if (logger.isLoggable(Level.FINEST)) {
      FormattingTuple ft = MessageFormatter.format(format, arg1, arg2);
      log(SELF, Level.FINEST, ft.getMessage(), ft.getThrowable());
    }
  }
View Full Code Here

Examples of org.slf4j.helpers.FormattingTuple

   * @param argArray
   *          an array of arguments
   */
  public void trace(String format, Object[] argArray) {
    if (logger.isLoggable(Level.FINEST)) {
      FormattingTuple ft = MessageFormatter.arrayFormat(format, argArray);
      log(SELF, Level.FINEST, ft.getMessage(), ft.getThrowable());
    }
  }
View Full Code Here

Examples of org.slf4j.helpers.FormattingTuple

   * @param arg
   *          the argument
   */
  public void debug(String format, Object arg) {
    if (logger.isLoggable(Level.FINE)) {
      FormattingTuple ft = MessageFormatter.format(format, arg);
      log(SELF, Level.FINE, ft.getMessage(), ft.getThrowable());
    }
  }
View Full Code Here

Examples of org.slf4j.helpers.FormattingTuple

   * @param arg2
   *          the second argument
   */
  public void debug(String format, Object arg1, Object arg2) {
    if (logger.isLoggable(Level.FINE)) {
      FormattingTuple ft = MessageFormatter.format(format, arg1, arg2);
      log(SELF, Level.FINE, ft.getMessage(), ft.getThrowable());
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.