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

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

本文整理了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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  1. /**
  2. * Issue a log message at the given log level using {@link java.text.MessageFormat}-style formatting.
  3. *
  4. * @param level the level
  5. * @param format the message format string
  6. * @param param1 the sole parameter
  7. */
  8. public void logv(Level level, String format, Object param1) {
  9. if (isEnabled(level)) {
  10. doLog(level, FQCN, format, new Object[] { param1 }, null);
  11. }
  12. }

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

  1. /**
  2. * Issue a log message with a level of TRACE using {@link java.text.MessageFormat}-style formatting.
  3. *
  4. * @param format the message format string
  5. * @param param1 the first parameter
  6. * @param param2 the second parameter
  7. * @param param3 the third parameter
  8. */
  9. public void tracev(String format, Object param1, Object param2, Object param3) {
  10. if (isEnabled(Level.TRACE)) {
  11. doLog(Level.TRACE, FQCN, format, new Object[] { param1, param2, param3 }, null);
  12. }
  13. }

相关文章