本文整理了Java中org.ocpsoft.logging.Logger.isInfoEnabled()
方法的一些代码示例,展示了Logger.isInfoEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.isInfoEnabled()
方法的具体详情如下:
包路径:org.ocpsoft.logging.Logger
类名称:Logger
方法名:isInfoEnabled
暂无
代码示例来源:origin: org.ocpsoft.logging/logging-api
public void info(final String msg, final Throwable t)
{
if (isInfoEnabled())
{
log(Level.INFO, msg, t);
}
}
代码示例来源:origin: org.ocpsoft.logging/logging-api
public void info(final String msg)
{
if (isInfoEnabled())
{
log(Level.INFO, msg, null);
}
}
代码示例来源:origin: ocpsoft/rewrite
public void info(final String msg, final Throwable t)
{
if (isInfoEnabled())
{
log(Level.INFO, msg, t);
}
}
代码示例来源:origin: ocpsoft/rewrite
public void info(final String msg)
{
if (isInfoEnabled())
{
log(Level.INFO, msg, null);
}
}
代码示例来源:origin: org.ocpsoft.logging/logging-api
public void info(final String msg, final Object arg1, final Object arg2)
{
if (isInfoEnabled())
{
log(Level.INFO, format(msg, new Object[] { arg1, arg2 }), null);
}
}
代码示例来源:origin: org.ocpsoft.logging/logging-api
public void info(final String msg, final Object arg)
{
if (isInfoEnabled())
{
log(Level.INFO, format(msg, new Object[] { arg }), null);
}
}
代码示例来源:origin: org.ocpsoft.logging/logging-api
public void info(final String msg, final Object[] argArray)
{
if (isInfoEnabled())
{
log(Level.INFO, format(msg, argArray), null);
}
}
代码示例来源:origin: ocpsoft/rewrite
public void info(final String msg, final Object arg)
{
if (isInfoEnabled())
{
log(Level.INFO, format(msg, new Object[] { arg }), null);
}
}
代码示例来源:origin: ocpsoft/rewrite
public void info(final String msg, final Object arg1, final Object arg2)
{
if (isInfoEnabled())
{
log(Level.INFO, format(msg, new Object[] { arg1, arg2 }), null);
}
}
代码示例来源:origin: ocpsoft/rewrite
public void info(final String msg, final Object[] argArray)
{
if (isInfoEnabled())
{
log(Level.INFO, format(msg, argArray), null);
}
}
代码示例来源:origin: ocpsoft/rewrite
if (log.isInfoEnabled())
log.info(buildLogOutput(event).toString());
break;
代码示例来源:origin: ocpsoft/rewrite
if (log.isInfoEnabled())
log.info(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: ocpsoft/rewrite
public void init(final FilterConfig filterConfig) throws ServletException
if (log.isInfoEnabled())
log.info("RewriteFilter starting up...");
if (log.isInfoEnabled())
log.info(Version.getFullName() + " initialized.");
代码示例来源:origin: org.ocpsoft.rewrite/rewrite-impl-servlet
public void init(final FilterConfig filterConfig) throws ServletException
if (log.isInfoEnabled())
log.info("RewriteFilter starting up...");
if (log.isInfoEnabled())
log.info(Version.getFullName() + " initialized.");
代码示例来源:origin: ocpsoft/rewrite
public void init(final FilterConfig filterConfig) throws ServletException
if (log.isInfoEnabled())
log.info("RewriteFilter starting up...");
if (log.isInfoEnabled())
log.info(Version.getFullName() + " initialized.");
代码示例来源: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: 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;
}
}
内容来源于网络,如有侵权,请联系作者删除!