本文整理了Java中org.apache.logging.log4j.Logger.isErrorEnabled()
方法的一些代码示例,展示了Logger.isErrorEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.isErrorEnabled()
方法的具体详情如下:
包路径:org.apache.logging.log4j.Logger
类名称:Logger
方法名:isErrorEnabled
[英]Checks whether this Logger is enabled for the Level#ERROR Level.
[中]检查此记录器是否已针对#错误级别启用。
代码示例来源:origin: apache/incubator-dubbo
@Override
public boolean isErrorEnabled() {
return logger.isErrorEnabled();
}
}
代码示例来源:origin: apache/incubator-dubbo
@Override
public boolean isErrorEnabled() {
return logger.isErrorEnabled();
}
}
代码示例来源:origin: alibaba/druid
public boolean isErrorEnabled() {
return log.isErrorEnabled();
}
代码示例来源:origin: alibaba/nacos
@Override
public boolean isErrorEnabled() {
return delegate.isErrorEnabled();
}
}
代码示例来源:origin: oblac/jodd
@Override
public boolean isErrorEnabled() {
return logger.isErrorEnabled();
}
代码示例来源:origin: looly/hutool
@Override
public boolean isErrorEnabled() {
return logger.isErrorEnabled();
}
代码示例来源:origin: looly/hutool
@Override
public boolean isErrorEnabled() {
return logger.isErrorEnabled();
}
代码示例来源:origin: wildfly/wildfly
@Override
public boolean isErrorEnabled() {return logger.isErrorEnabled();}
@Override
代码示例来源:origin: alibaba/druid
@Override
public boolean isStatementLogErrorEnabled() {
return statementLogger.isErrorEnabled() && super.isStatementLogErrorEnabled();
}
代码示例来源:origin: alibaba/druid
@Override
public boolean isConnectionLogErrorEnabled() {
return connectionLogger.isErrorEnabled() && super.isConnectionLogErrorEnabled();
}
代码示例来源:origin: alibaba/druid
@Override
public boolean isResultSetLogErrorEnabled() {
return resultSetLogger.isErrorEnabled() && super.isResultSetLogErrorEnabled();
}
代码示例来源:origin: apache/geode
if (logger.isErrorEnabled()) {
logger.error(e.getMessage(), e);
代码示例来源:origin: apache/geode
convert(configuration.getConfigProperties()));
} catch (DataSourceCreateException ex) {
if (logger.isErrorEnabled()) {
logger.error("create " + TYPE_NAME + " failed", ex.getWrappedException());
if (logger.isErrorEnabled()) {
logger.error("create " + TYPE_NAME + " failed", ex);
代码示例来源:origin: jfaster/mango
@Override
public boolean isErrorEnabled() {
return logger.isErrorEnabled();
}
代码示例来源:origin: com.alibaba/druid
public boolean isErrorEnabled() {
return log.isErrorEnabled();
}
代码示例来源:origin: com.alibaba/druid
@Override
public boolean isConnectionLogErrorEnabled() {
return connectionLogger.isErrorEnabled() && super.isConnectionLogErrorEnabled();
}
代码示例来源:origin: com.alibaba/druid
@Override
public boolean isStatementLogErrorEnabled() {
return statementLogger.isErrorEnabled() && super.isStatementLogErrorEnabled();
}
代码示例来源:origin: com.alibaba/druid
@Override
public boolean isResultSetLogErrorEnabled() {
return resultSetLogger.isErrorEnabled() && super.isResultSetLogErrorEnabled();
}
代码示例来源:origin: banq/jdonframework
private static void uselog4j2(Throwable t, String msg, String module) {
Logger logger = getLogger(module);
if (logger.isErrorEnabled())
logger.error(msg.intern(), t);
else
uselog4j3(t, msg, module);
}
代码示例来源:origin: apiman/apiman
@Override
public void error(Throwable error, String message, Object... args) {
if (delegatedLogger.isErrorEnabled()) {
String formatted = format(message, args);
delegatedLogger.error(jsonify(formatted, LogLevel.ERROR));
}
}
内容来源于网络,如有侵权,请联系作者删除!