org.apache.openejb.util.Logger.getMessage()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(5.1k)|赞(0)|评价(0)|浏览(180)

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

Logger.getMessage介绍

[英]Given a key and a baseName, this method computes a message for a key. if the key is not found in this ResourceBundle for this baseName, then it recursively looks up its parent to find the message for a key. If no message is found for a key, the key is returned as is and is logged by the logger.
[中]给定一个键和一个基名称,此方法计算一个键的消息。如果在此ResourceBundle中找不到此baseName的密钥,则它会递归地查找其父项以查找密钥的消息。如果未找到钥匙的信息,则钥匙将按原样返回,并由记录器记录。

代码示例

代码示例来源:origin: org.apache.openejb/openejb-core

public String fatal(final String message) {
  if (isFatalEnabled()) {
    final String msg = getMessage(message, baseName);
    logStream.fatal(msg);
    return msg;
  }
  return message;
}

代码示例来源:origin: org.apache.openejb/openejb-core

public String info(final String message) {
  if (isInfoEnabled()) {
    final String msg = getMessage(message, baseName);
    logStream.info(msg);
    return msg;
  }
  return message;
}

代码示例来源:origin: org.apache.openejb/openejb-core

public String info(final String message, final Throwable t) {
  if (isInfoEnabled()) {
    final String msg = getMessage(message, baseName);
    logStream.info(msg, t);
    return msg;
  }
  return message;
}

代码示例来源:origin: org.apache.openejb/openejb-core

public String debug(final String message, final Throwable t) {
  if (isDebugEnabled()) {
    final String msg = getMessage(message, baseName);
    logStream.debug(msg, t);
    return msg;
  }
  return message;
}

代码示例来源:origin: org.apache.openejb/openejb-core

public String warning(final String message) {
  if (isWarningEnabled()) {
    final String msg = getMessage(message, baseName);
    logStream.warn(msg);
    return msg;
  }
  return message;
}

代码示例来源:origin: org.apache.tomee/openejb-core

public String fatal(final String message) {
  if (isFatalEnabled()) {
    final String msg = getMessage(message, baseName);
    logStream.fatal(msg);
    return msg;
  }
  return message;
}

代码示例来源:origin: org.apache.tomee/openejb-core

public String info(final String message, final Throwable t) {
  if (isInfoEnabled()) {
    final String msg = getMessage(message, baseName);
    logStream.info(msg, t);
    return msg;
  }
  return message;
}

代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-core

public String error(String message) {
  if (isErrorEnabled()) {
    String msg = getMessage(message, baseName);
    logStream.error(msg);
    return msg;
  }
  return message;
}

代码示例来源:origin: org.apache.openejb/openejb-core

public String error(final String message) {
  if (isErrorEnabled()) {
    final String msg = getMessage(message, baseName);
    logStream.error(msg);
    return msg;
  }
  return message;
}

代码示例来源:origin: org.apache.openejb/openejb-core

public String fatal(final String message, final Throwable t) {
  if (isFatalEnabled()) {
    final String msg = getMessage(message, baseName);
    logStream.fatal(msg, t);
    return msg;
  }
  return message;
}

代码示例来源:origin: org.apache.openejb/openejb-core

public String warning(final String message, final Throwable t, final Object... args) {
  if (isWarningEnabled()) {
    String msg = getMessage(message, baseName);
    msg = formatMessage(msg, args);
    logStream.warn(msg, t);
    return msg;
  }
  return message;
}

代码示例来源:origin: org.apache.openejb/openejb-core

public String debug(final String message, final Throwable t, final Object... args) {
  if (isDebugEnabled()) {
    String msg = getMessage(message, baseName);
    msg = formatMessage(msg, args);
    logStream.debug(msg, t);
    return msg;
  }
  return message;
}

代码示例来源:origin: org.apache.openejb/openejb-core

public String error(final String message, final Object... args) {
  if (isErrorEnabled()) {
    String msg = getMessage(message, baseName);
    msg = formatMessage(msg, args);
    logStream.error(msg);
    return msg;
  }
  return message;
}

代码示例来源:origin: org.apache.tomee/openejb-core

public String error(final String message, final Object... args) {
  if (isErrorEnabled()) {
    String msg = getMessage(message, baseName);
    msg = formatMessage(msg, args);
    logStream.error(msg);
    return msg;
  }
  return message;
}

代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-core

public String error(String message, Object... args) {
  if (isErrorEnabled()) {
    String msg = getMessage(message, baseName);
    msg = formatMessage(msg, args);
    logStream.error(msg);
    return msg;
  }
  return message;
}

代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-core

public String fatal(String message, Object... args) {
  if (isFatalEnabled()) {
    String msg = getMessage(message, baseName);
    msg = formatMessage(msg, args);
    logStream.fatal(msg);
    return msg;
  }
  return message;
}

代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-core

public String warning(String message, Object... args) {
  if (isWarningEnabled()) {
    String msg = getMessage(message, baseName);
    msg = formatMessage(msg, args);
    logStream.warn(msg);
    return msg;
  }
  return message;
}

代码示例来源:origin: org.apache.openejb/openejb-core

public String error(final String message, final Throwable t, final Object... args) {
  if (isErrorEnabled()) {
    String msg = getMessage(message, baseName);
    msg = formatMessage(msg, args);
    logStream.error(msg, t);
    return msg;
  }
  return message;
}

代码示例来源:origin: org.apache.openejb/openejb-core

public String fatal(final String message, final Object... args) {
  if (isFatalEnabled()) {
    String msg = getMessage(message, baseName);
    msg = formatMessage(msg, args);
    logStream.fatal(msg);
    return msg;
  }
  return message;
}

代码示例来源:origin: org.apache.tomee/openejb-core

public String error(final String message, final Throwable t, final Object... args) {
  if (isErrorEnabled()) {
    String msg = getMessage(message, baseName);
    msg = formatMessage(msg, args);
    logStream.error(msg, t);
    return msg;
  }
  return message;
}

相关文章