本文整理了Java中org.ocpsoft.logging.Logger.error()
方法的一些代码示例,展示了Logger.error()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.error()
方法的具体详情如下:
包路径:org.ocpsoft.logging.Logger
类名称:Logger
方法名:error
暂无
代码示例来源:origin: ocpsoft/rewrite
log.error("unable to find urlrewrite conf file at " + confPath);
log.error("unloading existing conf");
urlRewriter = null;
代码示例来源:origin: ocpsoft/rewrite
private static Object executeProviderCallable(Rewrite event, EvaluationContext context,
ProviderCallable<Object> providerCallable)
{
List<Exception> exceptions = new ArrayList<Exception>();
for (ExpressionLanguageProvider provider : getProviders()) {
try
{
return providerCallable.call(event, context, provider);
}
catch (RuntimeException e) {
throw e;
}
catch (Exception e)
{
exceptions.add(e);
}
}
for (Exception exception : exceptions) {
log.error("DEFERRED EXCEPTION", exception);
}
throw new RewriteException("No registered " + ExpressionLanguageProvider.class.getName()
+ " could handle the Expression [" + providerCallable.getExpression() + "]");
}
代码示例来源:origin: org.ocpsoft.rewrite/rewrite-api-el
private static Object executeProviderCallable(Rewrite event, EvaluationContext context,
ProviderCallable<Object> providerCallable)
{
List<Exception> exceptions = new ArrayList<Exception>();
for (ExpressionLanguageProvider provider : getProviders()) {
try
{
return providerCallable.call(event, context, provider);
}
catch (RuntimeException e) {
throw e;
}
catch (Exception e)
{
exceptions.add(e);
}
}
for (Exception exception : exceptions) {
log.error("DEFERRED EXCEPTION", exception);
}
throw new RewriteException("No registered " + ExpressionLanguageProvider.class.getName()
+ " could handle the Expression [" + providerCallable.getExpression() + "]");
}
代码示例来源:origin: ocpsoft/rewrite
private static Object executeProviderCallable(Rewrite event, EvaluationContext context,
ProviderCallable<Object> providerCallable)
{
List<Exception> exceptions = new ArrayList<Exception>();
for (ExpressionLanguageProvider provider : getProviders()) {
try
{
return providerCallable.call(event, context, provider);
}
catch (RuntimeException e) {
throw e;
}
catch (Exception e)
{
exceptions.add(e);
}
}
for (Exception exception : exceptions) {
log.error("DEFERRED EXCEPTION", exception);
}
throw new RewriteException("No registered " + ExpressionLanguageProvider.class.getName()
+ " could handle the Expression [" + providerCallable.getExpression() + "]");
}
代码示例来源:origin: ocpsoft/rewrite
log.error("Failed to read JAR file: " + jarUrl.toString(), e);
代码示例来源:origin: ocpsoft/rewrite
log.error("Failed to read JAR file: " + jarUrl.toString(), e);
代码示例来源:origin: ocpsoft/rewrite
case ERROR:
if (log.isErrorEnabled())
log.error(buildLogOutput(event).toString());
break;
case DEBUG:
代码示例来源:origin: ocpsoft/rewrite
case ERROR:
if (log.isErrorEnabled())
log.error(buildLogOutput(event).toString());
break;
case DEBUG:
代码示例来源:origin: ocpsoft/rewrite
log.error(message);
throw e;
代码示例来源:origin: ocpsoft/rewrite
log.error(message);
throw e;
代码示例来源:origin: ocpsoft/rewrite
private void checkConfLocal(final Conf conf)
{
if (conf.isOk() && conf.isEngineEnabled()) {
urlRewriter = new UrlRewriter(conf);
log.debug("Tuckey UrlRewriteFilter configuration loaded (Status: OK)");
}
else {
if (!conf.isOk()) {
log.error("Tuckey UrlRewriteFilter configuration failed (Status: ERROR)");
}
if (!conf.isEngineEnabled()) {
log.warn("Tuckey UrlRewriteFilter engine explicitly disabled in configuration");
}
if (urlRewriter != null) {
log.debug("Tuckey UrlRewriteFilter configuration unloaded");
urlRewriter = null;
}
}
}
代码示例来源:origin: ocpsoft/rewrite
@Override
public void perform(Rewrite event, EvaluationContext context)
{
String message = messageBuilder.build(event, context);
switch (level)
{
case TRACE:
if (log.isTraceEnabled())
log.trace(message);
break;
case DEBUG:
if (log.isDebugEnabled())
log.debug(message);
break;
case INFO:
if (log.isInfoEnabled())
log.info(message);
break;
case WARN:
if (log.isWarnEnabled())
log.warn(message);
break;
case ERROR:
if (log.isErrorEnabled())
log.error(message);
break;
default:
break;
}
}
代码示例来源:origin: ocpsoft/rewrite
@Override
public void perform(Rewrite event, EvaluationContext context)
{
String message = messageBuilder.build(event, context);
switch (level)
{
case TRACE:
if (log.isTraceEnabled())
log.trace(message);
break;
case DEBUG:
if (log.isDebugEnabled())
log.debug(message);
break;
case INFO:
if (log.isInfoEnabled())
log.info(message);
break;
case WARN:
if (log.isWarnEnabled())
log.warn(message);
break;
case ERROR:
if (log.isErrorEnabled())
log.error(message);
break;
default:
break;
}
}
代码示例来源:origin: windup/windup
@Override
public void perform(Rewrite event, EvaluationContext context)
{
// Quite verbose. TODO: ... See https://github.com/ocpsoft/logging/issues/1
switch (level)
{
case TRACE:
if (log.isTraceEnabled())
log.trace(messageBuilder.build(event, context));
break;
case DEBUG:
if (log.isDebugEnabled())
log.debug(messageBuilder.build(event, context));
break;
case INFO:
if (log.isInfoEnabled())
log.info(messageBuilder.build(event, context));
break;
case WARN:
if (log.isWarnEnabled())
log.warn(messageBuilder.build(event, context));
break;
case ERROR:
if (log.isErrorEnabled())
log.error(messageBuilder.build(event, context));
break;
}
}
代码示例来源:origin: org.jboss.windup.config/windup-config-api
@Override
public void perform(Rewrite event, EvaluationContext context)
{
// Quite verbose. TODO: ... See https://github.com/ocpsoft/logging/issues/1
switch (level)
{
case TRACE:
if (log.isTraceEnabled())
log.trace(messageBuilder.build(event, context));
break;
case DEBUG:
if (log.isDebugEnabled())
log.debug(messageBuilder.build(event, context));
break;
case INFO:
if (log.isInfoEnabled())
log.info(messageBuilder.build(event, context));
break;
case WARN:
if (log.isWarnEnabled())
log.warn(messageBuilder.build(event, context));
break;
case ERROR:
if (log.isErrorEnabled())
log.error(messageBuilder.build(event, context));
break;
}
}
内容来源于网络,如有侵权,请联系作者删除!