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

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

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

Logger.doLogf介绍

[英]Implementation log method (printf formatting).
[中]实现日志方法(printf格式)。

代码示例

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

public void tracef(final String format, final int arg1, final int arg2, final int arg3) {
  if (isEnabled(Level.TRACE)) {
    doLogf(Level.TRACE, FQCN, format, new Object[] { arg1, arg2, arg3 }, null);
  }
}

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

public void tracef(final String format, final int arg1, final int arg2, final Object arg3) {
  if (isEnabled(Level.TRACE)) {
    doLogf(Level.TRACE, FQCN, format, new Object[] { arg1, arg2, arg3 }, null);
  }
}

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

public void tracef(final String format, final int arg1, final Object arg2, final Object arg3) {
  if (isEnabled(Level.TRACE)) {
    doLogf(Level.TRACE, FQCN, format, new Object[] { arg1, arg2, arg3 }, null);
  }
}

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

public void tracef(final Throwable t, final String format, final int arg) {
  if (isEnabled(Level.TRACE)) {
    doLogf(Level.TRACE, FQCN, format, new Object[] { arg }, t);
  }
}

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

public void tracef(final String format, final long arg) {
  if (isEnabled(Level.TRACE)) {
    doLogf(Level.TRACE, FQCN, format, new Object[] { arg }, null);
  }
}

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

public void tracef(final String format, final long arg1, final Object arg2, final Object arg3) {
  if (isEnabled(Level.TRACE)) {
    doLogf(Level.TRACE, FQCN, format, new Object[] { arg1, arg2, arg3 }, null);
  }
}

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

public void tracef(final Throwable t, final String format, final long arg) {
  if (isEnabled(Level.TRACE)) {
    doLogf(Level.TRACE, FQCN, format, new Object[] { arg }, t);
  }
}

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

public void debugf(final String format, final int arg) {
  if (isEnabled(Level.DEBUG)) {
    doLogf(Level.DEBUG, FQCN, format, new Object[] { arg }, null);
  }
}

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

public void debugf(final Throwable t, final String format, final int arg) {
  if (isEnabled(Level.DEBUG)) {
    doLogf(Level.DEBUG, FQCN, format, new Object[] { arg }, t);
  }
}

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

public void debugf(final Throwable t, final String format, final int arg1, final Object arg2, final Object arg3) {
  if (isEnabled(Level.DEBUG)) {
    doLogf(Level.DEBUG, FQCN, format, new Object[] { arg1, arg2, arg3 }, t);
  }
}

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

public void debugf(final String format, final long arg) {
  if (isEnabled(Level.DEBUG)) {
    doLogf(Level.DEBUG, FQCN, format, new Object[] { arg }, null);
  }
}

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

public void debugf(final Throwable t, final String format, final long arg1, final long arg2) {
  if (isEnabled(Level.DEBUG)) {
    doLogf(Level.DEBUG, FQCN, format, new Object[] { arg1, arg2 }, t);
  }
}

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

public void debugf(final Throwable t, final String format, final long arg1, final long arg2, final Object arg3) {
  if (isEnabled(Level.DEBUG)) {
    doLogf(Level.DEBUG, FQCN, format, new Object[] { arg1, arg2, arg3 }, t);
  }
}

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

/**
 * Issue a formatted log message with a level of ERROR.
 *
 * @param format the format string as per {@link String#format(String, Object...)} or resource bundle key therefor
 * @param param1 the first parameter
 * @param param2 the second parameter
 */
public void errorf(String format, Object param1, Object param2) {
  if (isEnabled(Level.ERROR)) {
    doLogf(Level.ERROR, FQCN, format, new Object[] { param1, param2 }, null);
  }
}

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

/**
 * Issue a formatted log message with a level of TRACE.
 *
 * @param format the format string as per {@link String#format(String, Object...)} or resource bundle key therefor
 * @param param1 the sole parameter
 */
public void tracef(String format, Object param1) {
  if (isEnabled(Level.TRACE)) {
    doLogf(Level.TRACE, FQCN, format, new Object[] { param1 }, null);
  }
}

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

/**
 * Issue a formatted log message with a level of TRACE.
 *
 * @param format the format string as per {@link String#format(String, Object...)} or resource bundle key therefor
 * @param param1 the first parameter
 * @param param2 the second parameter
 */
public void tracef(String format, Object param1, Object param2) {
  if (isEnabled(Level.TRACE)) {
    doLogf(Level.TRACE, FQCN, format, new Object[] { param1, param2 }, null);
  }
}

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

public void tracef(final Throwable t, final String format, final long arg1, final long arg2) {
  if (isEnabled(Level.TRACE)) {
    doLogf(Level.TRACE, FQCN, format, new Object[] { arg1, arg2 }, t);
  }
}

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

public void tracef(final Throwable t, final String format, final long arg1, final Object arg2, final Object arg3) {
  if (isEnabled(Level.TRACE)) {
    doLogf(Level.TRACE, FQCN, format, new Object[] { arg1, arg2, arg3 }, t);
  }
}

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

public void debugf(final String format, final int arg1, final int arg2) {
  if (isEnabled(Level.DEBUG)) {
    doLogf(Level.DEBUG, FQCN, format, new Object[] { arg1, arg2 }, null);
  }
}

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

public void debugf(final String format, final int arg1, final Object arg2) {
  if (isEnabled(Level.DEBUG)) {
    doLogf(Level.DEBUG, FQCN, format, new Object[] { arg1, arg2 }, null);
  }
}

相关文章