本文整理了Java中org.apache.openejb.util.Logger.getMessage()
方法的一些代码示例,展示了Logger.getMessage()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.getMessage()
方法的具体详情如下:
包路径:org.apache.openejb.util.Logger
类名称: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;
}
内容来源于网络,如有侵权,请联系作者删除!