本文整理了Java中org.ocpsoft.logging.Logger.isWarnEnabled()
方法的一些代码示例,展示了Logger.isWarnEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.isWarnEnabled()
方法的具体详情如下:
包路径:org.ocpsoft.logging.Logger
类名称:Logger
方法名:isWarnEnabled
暂无
代码示例来源:origin: org.ocpsoft.logging/logging-api
public void warn(final String msg)
{
if (isWarnEnabled())
{
log(Level.WARN, msg, null);
}
}
代码示例来源:origin: org.ocpsoft.logging/logging-api
public void warn(final String msg, final Throwable t)
{
if (isWarnEnabled())
{
log(Level.WARN, msg, t);
}
}
代码示例来源:origin: ocpsoft/rewrite
public void warn(final String msg)
{
if (isWarnEnabled())
{
log(Level.WARN, msg, null);
}
}
代码示例来源:origin: ocpsoft/rewrite
public void warn(final String msg, final Throwable t)
{
if (isWarnEnabled())
{
log(Level.WARN, msg, t);
}
}
代码示例来源:origin: org.ocpsoft.logging/logging-api
public void warn(final String msg, final Object arg)
{
if (isWarnEnabled())
{
log(Level.WARN, format(msg, new Object[] { arg }), null);
}
}
代码示例来源:origin: ocpsoft/rewrite
public void warn(final String msg, final Object[] argArray)
{
if (isWarnEnabled())
{
log(Level.WARN, format(msg, argArray), null);
}
}
代码示例来源:origin: ocpsoft/rewrite
public void warn(final String msg, final Object arg1, final Object arg2)
{
if (isWarnEnabled())
{
log(Level.WARN, format(msg, new Object[] { arg1, arg2 }), null);
}
}
代码示例来源:origin: org.ocpsoft.logging/logging-api
public void warn(final String msg, final Object arg1, final Object arg2)
{
if (isWarnEnabled())
{
log(Level.WARN, format(msg, new Object[] { arg1, arg2 }), null);
}
}
代码示例来源:origin: org.ocpsoft.logging/logging-api
public void warn(final String msg, final Object[] argArray)
{
if (isWarnEnabled())
{
log(Level.WARN, format(msg, argArray), null);
}
}
代码示例来源:origin: ocpsoft/rewrite
public void warn(final String msg, final Object arg)
{
if (isWarnEnabled())
{
log(Level.WARN, format(msg, new Object[] { arg }), null);
}
}
代码示例来源:origin: ocpsoft/rewrite
break;
case WARN:
if (log.isWarnEnabled())
log.warn(buildLogOutput(event).toString());
break;
代码示例来源:origin: ocpsoft/rewrite
break;
case WARN:
if (log.isWarnEnabled())
log.warn(buildLogOutput(event).toString());
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: 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: org.ocpsoft.rewrite/rewrite-impl-servlet
if (log.isWarnEnabled())
log.warn("No Rewrite event was produced - RewriteFilter disabled on this request.");
chain.doFilter(request, response);
log.debug("RewriteFilter passing control of request to underlying application.");
if (response.isCommitted() && log.isWarnEnabled())
log.warn("Response has already been committed, and further write operations are not permitted. "
+ "This may result in an IllegalStateException being triggered by the underlying application. To avoid this situation, "
代码示例来源: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;
}
}
代码示例来源:origin: org.ocpsoft.rewrite/rewrite-impl-servlet
if (log.isWarnEnabled())
log.warn("No ConfigurationProviders were registered: " +
"Rewrite will not be enabled on this application. " +
代码示例来源:origin: ocpsoft/rewrite
if (log.isWarnEnabled())
log.warn("No ConfigurationProviders were registered: " +
"Rewrite will not be enabled on this application. " +
代码示例来源:origin: ocpsoft/rewrite
if (log.isWarnEnabled())
log.warn("No ConfigurationProviders were registered: " +
"Rewrite will not be enabled on this application. " +
代码示例来源: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;
}
}
内容来源于网络,如有侵权,请联系作者删除!