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

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

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

Logger.isEnabled介绍

暂无

代码示例

代码示例来源: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 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 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

/**
 * 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

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

/**
 * 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

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

/**
 * 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

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

/**
 * 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

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);
  }
}

代码示例来源: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

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

代码示例来源: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

public void debugf(final String format, final long arg1, final long arg2, final long arg3) {
  if (isEnabled(Level.DEBUG)) {
    doLogf(Level.DEBUG, FQCN, format, new Object[] { arg1, arg2, arg3 }, 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 formatted log message with a level of WARN.
 *
 * @param format the format string as per {@link String#format(String, Object...)} or resource bundle key therefor
 * @param param1 the sole parameter
 */
public void warnf(String format, Object param1) {
  if (isEnabled(Level.WARN)) {
    doLogf(Level.WARN, 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 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 sole parameter
 */
public void errorf(String format, Object param1) {
  if (isEnabled(Level.ERROR)) {
    doLogf(Level.ERROR, 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);
  }
}

相关文章