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

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

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

Logger.doLog介绍

[英]Implementation log method (standard parameter formatting).
[中]实现日志方法(标准参数格式)。

代码示例

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

/**
 * Issue a log message with a level of DEBUG using {@link java.text.MessageFormat}-style formatting.
 *
 * @param format the message format string
 * @param param1 the sole parameter
 */
public void debugv(String format, Object param1) {
  if (isEnabled(Level.DEBUG)) {
    doLog(Level.DEBUG, FQCN, format, new Object[] { param1 }, null);
  }
}

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

/**
 * Issue a log message with a level of DEBUG using {@link java.text.MessageFormat}-style formatting.
 *
 * @param format the message format string
 * @param param1 the first parameter
 * @param param2 the second parameter
 */
public void debugv(String format, Object param1, Object param2) {
  if (isEnabled(Level.DEBUG)) {
    doLog(Level.DEBUG, FQCN, format, new Object[] { param1, param2 }, null);
  }
}

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

/**
 * Issue a log message with a level of WARN using {@link java.text.MessageFormat}-style formatting.
 *
 * @param format the message format string
 * @param param1 the first parameter
 * @param param2 the second parameter
 */
public void warnv(String format, Object param1, Object param2) {
  if (isEnabled(Level.WARN)) {
    doLog(Level.WARN, FQCN, format, new Object[] { param1, param2 }, null);
  }
}

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

/**
 * Issue a log message with a level of FATAL using {@link java.text.MessageFormat}-style formatting.
 *
 * @param format the message format string
 * @param param1 the first parameter
 * @param param2 the second parameter
 */
public void fatalv(String format, Object param1, Object param2) {
  if (isEnabled(Level.FATAL)) {
    doLog(Level.FATAL, FQCN, format, new Object[] { param1, param2 }, null);
  }
}

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

/**
 * Issue a log message with a level of TRACE using {@link java.text.MessageFormat}-style formatting.
 *
 * @param format the message format string
 * @param param1 the first parameter
 * @param param2 the second parameter
 */
public void tracev(String format, Object param1, Object param2) {
  if (isEnabled(Level.TRACE)) {
    doLog(Level.TRACE, FQCN, format, new Object[] { param1, param2 }, null);
  }
}

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

/**
 * Issue a log message with a level of WARN using {@link java.text.MessageFormat}-style formatting.
 *
 * @param format the message format string
 * @param param1 the sole parameter
 */
public void warnv(String format, Object param1) {
  if (isEnabled(Level.WARN)) {
    doLog(Level.WARN, FQCN, format, new Object[] { param1 }, null);
  }
}

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

/**
 * Issue a log message with a level of ERROR using {@link java.text.MessageFormat}-style formatting.
 *
 * @param format the message format string
 * @param param1 the first parameter
 * @param param2 the second parameter
 */
public void errorv(String format, Object param1, Object param2) {
  if (isEnabled(Level.ERROR)) {
    doLog(Level.ERROR, FQCN, format, new Object[] { param1, param2 }, null);
  }
}

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

/**
 * Issue a log message with a level of INFO using {@link java.text.MessageFormat}-style formatting.
 *
 * @param t the throwable
 * @param format the message format string
 * @param param1 the sole parameter
 */
public void infov(Throwable t, String format, Object param1) {
  if (isEnabled(Level.INFO)) {
    doLog(Level.INFO, FQCN, format, new Object[] { param1 }, t);
  }
}

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

/**
 * Issue a log message with a level of ERROR using {@link java.text.MessageFormat}-style formatting.
 *
 * @param t the throwable
 * @param format the message format string
 * @param param1 the sole parameter
 */
public void errorv(Throwable t, String format, Object param1) {
  if (isEnabled(Level.ERROR)) {
    doLog(Level.ERROR, FQCN, format, new Object[] { param1 }, t);
  }
}

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

/**
 * Issue a log message with a level of FATAL using {@link java.text.MessageFormat}-style formatting.
 *
 * @param format the message format string
 * @param param1 the sole parameter
 */
public void fatalv(String format, Object param1) {
  if (isEnabled(Level.FATAL)) {
    doLog(Level.FATAL, FQCN, format, new Object[] { param1 }, null);
  }
}

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

/**
 * Issue a log message with a level of INFO using {@link java.text.MessageFormat}-style formatting.
 *
 * @param format the message format string
 * @param param1 the sole parameter
 */
public void infov(String format, Object param1) {
  if (isEnabled(Level.INFO)) {
    doLog(Level.INFO, FQCN, format, new Object[] { param1 }, null);
  }
}

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

/**
 * Issue a log message with a level of TRACE using {@link java.text.MessageFormat}-style formatting.
 *
 * @param format the message format string
 * @param param1 the sole parameter
 */
public void tracev(String format, Object param1) {
  if (isEnabled(Level.TRACE)) {
    doLog(Level.TRACE, FQCN, format, new Object[] { param1 }, null);
  }
}

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

/**
 * Issue a log message with a level of TRACE using {@link java.text.MessageFormat}-style formatting.
 *
 * @param t the throwable
 * @param format the message format string
 * @param param1 the sole parameter
 */
public void tracev(Throwable t, String format, Object param1) {
  if (isEnabled(Level.TRACE)) {
    doLog(Level.TRACE, FQCN, format, new Object[] { param1 }, t);
  }
}

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

/**
 * Issue a log message with a level of DEBUG using {@link java.text.MessageFormat}-style formatting.
 *
 * @param t the throwable
 * @param format the message format string
 * @param param1 the sole parameter
 */
public void debugv(Throwable t, String format, Object param1) {
  if (isEnabled(Level.DEBUG)) {
    doLog(Level.DEBUG, FQCN, format, new Object[] { param1 }, t);
  }
}

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

/**
 * Issue a log message with a level of INFO using {@link java.text.MessageFormat}-style formatting.
 *
 * @param format the message format string
 * @param param1 the first parameter
 * @param param2 the second parameter
 */
public void infov(String format, Object param1, Object param2) {
  if (isEnabled(Level.INFO)) {
    doLog(Level.INFO, FQCN, format, new Object[] { param1, param2 }, null);
  }
}

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

/**
 * Issue a log message with a level of WARN using {@link java.text.MessageFormat}-style formatting.
 *
 * @param t the throwable
 * @param format the message format string
 * @param param1 the sole parameter
 */
public void warnv(Throwable t, String format, Object param1) {
  if (isEnabled(Level.WARN)) {
    doLog(Level.WARN, FQCN, format, new Object[] { param1 }, t);
  }
}

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

/**
 * Issue a log message with a level of ERROR using {@link java.text.MessageFormat}-style formatting.
 *
 * @param format the message format string
 * @param param1 the sole parameter
 */
public void errorv(String format, Object param1) {
  if (isEnabled(Level.ERROR)) {
    doLog(Level.ERROR, FQCN, format, new Object[] { param1 }, null);
  }
}

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

/**
 * Issue a log message with a level of FATAL using {@link java.text.MessageFormat}-style formatting.
 *
 * @param t the throwable
 * @param format the message format string
 * @param param1 the sole parameter
 */
public void fatalv(Throwable t, String format, Object param1) {
  if (isEnabled(Level.FATAL)) {
    doLog(Level.FATAL, FQCN, format, new Object[] { param1 }, t);
  }
}

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

/**
 * Issue a log message at the given log level using {@link java.text.MessageFormat}-style formatting.
 *
 * @param level the level
 * @param format the message format string
 * @param param1 the sole parameter
 */
public void logv(Level level, String format, Object param1) {
  if (isEnabled(level)) {
    doLog(level, FQCN, format, new Object[] { param1 }, null);
  }
}

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

/**
 * Issue a log message with a level of TRACE using {@link java.text.MessageFormat}-style formatting.
 *
 * @param format the message format string
 * @param param1 the first parameter
 * @param param2 the second parameter
 * @param param3 the third parameter
 */
public void tracev(String format, Object param1, Object param2, Object param3) {
  if (isEnabled(Level.TRACE)) {
    doLog(Level.TRACE, FQCN, format, new Object[] { param1, param2, param3 }, null);
  }
}

相关文章