本文整理了Java中org.apache.openejb.util.Logger.isErrorEnabled()
方法的一些代码示例,展示了Logger.isErrorEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.isErrorEnabled()
方法的具体详情如下:
包路径:org.apache.openejb.util.Logger
类名称:Logger
方法名:isErrorEnabled
暂无
代码示例来源:origin: org.apache.tomee/openejb-core
@Override
public boolean isErrorEnabled() {
return logger.isErrorEnabled();
}
代码示例来源:origin: org.apache.openejb/openejb-core
@Override
public boolean isErrorEnabled() {
return logger.isErrorEnabled();
}
代码示例来源:origin: org.apache.openejb/openejb-core
@SuppressWarnings("UnusedDeclaration")
public boolean isLevelEnable(final String level) {
if ("info".equals(level.toLowerCase())) {
return isInfoEnabled();
} else if ("debug".equals(level.toLowerCase())) {
return isDebugEnabled();
} else if ("warning".equals(level.toLowerCase())) {
return isWarningEnabled();
} else if ("fatal".equals(level.toLowerCase())) {
return isFatalEnabled();
} else if ("error".equals(level.toLowerCase())) {
return isErrorEnabled();
}
return false;
}
代码示例来源: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.tomee/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.tomee/openejb-core
public String error(final String message, final Throwable t) {
if (isErrorEnabled()) {
final String msg = getMessage(message, baseName);
logStream.error(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, final Throwable t) {
if (isErrorEnabled()) {
final String msg = getMessage(message, baseName);
logStream.error(msg, t);
return msg;
}
return message;
}
代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-core
public String error(String message, Throwable t) {
if (isErrorEnabled()) {
String msg = getMessage(message, baseName);
logStream.error(msg, t);
return msg;
}
return message;
}
代码示例来源:origin: org.apache.openejb/openejb-core
private void tomeeConfig(final BrokerService broker) {
//Notify when an error occurs on shutdown.
broker.setUseLoggingForShutdownErrors(Logger.getInstance(LogCategory.OPENEJB_STARTUP, ActiveMQ5Factory.class).isErrorEnabled());
}
代码示例来源:origin: org.apache.tomee/openejb-core
private void tomeeConfig(final BrokerService broker) {
//Notify when an error occurs on shutdown.
broker.setUseLoggingForShutdownErrors(Logger.getInstance(LogCategory.OPENEJB_STARTUP, ActiveMQ5Factory.class).isErrorEnabled());
}
代码示例来源:origin: org.apache.tomee/openejb-core
@SuppressWarnings("UnusedDeclaration")
public boolean isLevelEnable(final String level) {
final String levelLowerCase = level.toLowerCase(Locale.ENGLISH);
if ("info".equals(levelLowerCase)) {
return isInfoEnabled();
} else if ("debug".equals(levelLowerCase)) {
return isDebugEnabled();
} else if ("warning".equals(levelLowerCase)) {
return isWarningEnabled();
} else if ("fatal".equals(levelLowerCase)) {
return isFatalEnabled();
} else if ("error".equals(levelLowerCase)) {
return isErrorEnabled();
}
return false;
}
代码示例来源: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.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;
}
代码示例来源: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 error(String message, Throwable t, Object... args) {
if (isErrorEnabled()) {
String msg = getMessage(message, baseName);
msg = formatMessage(msg, args);
logStream.error(msg, t);
return msg;
}
return message;
}
内容来源于网络,如有侵权,请联系作者删除!