本文整理了Java中org.codehaus.plexus.logging.Logger.isErrorEnabled()
方法的一些代码示例,展示了Logger.isErrorEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.isErrorEnabled()
方法的具体详情如下:
包路径:org.codehaus.plexus.logging.Logger
类名称:Logger
方法名:isErrorEnabled
暂无
代码示例来源:origin: org.apache.maven/maven-plugin-api
public boolean isErrorEnabled()
{
return logger.isErrorEnabled();
}
代码示例来源:origin: apache/maven
public boolean isErrorEnabled()
{
return logger.isErrorEnabled();
}
代码示例来源:origin: apache/maven-scm
/** {@inheritDoc} */
public boolean isErrorEnabled()
{
return logger.isErrorEnabled();
}
代码示例来源:origin: org.apache.maven.doxia/doxia-logging-api
/** {@inheritDoc} */
public boolean isErrorEnabled()
{
return logger.isErrorEnabled();
}
代码示例来源:origin: apache/maven-release
@Override
public boolean isErrorEnabled()
{
return logger.isErrorEnabled();
}
代码示例来源:origin: org.xwiki.platform/xwiki-core-plexus
/**
* {@inheritDoc}
*
* @see Logger#isErrorEnabled()
*/
public boolean isErrorEnabled()
{
return this.logger.isErrorEnabled();
}
}
代码示例来源:origin: com.marvelution.maven.components/maven-executor
/**
* {@inheritDoc}
*/
public boolean isErrorEnabled() {
return logger.isErrorEnabled();
}
代码示例来源:origin: org.apache.maven.mercury/mercury-plexus
public boolean isErrorEnabled()
{
return _logger.isErrorEnabled();
}
代码示例来源:origin: apache/maven-surefire
@Override
public boolean isErrorEnabled()
{
return plexusLogger.isErrorEnabled() || plexusLogger.isFatalErrorEnabled();
}
代码示例来源:origin: org.apache.maven.surefire/maven-surefire-common
@Override
public boolean isErrorEnabled()
{
return plexusLogger.isErrorEnabled() || plexusLogger.isFatalErrorEnabled();
}
代码示例来源:origin: plexus/plexus-logging-provider-test
private void checkWarnLevel( Logger logger )
{
assertFalse( "debug disabled", logger.isDebugEnabled() );
assertFalse( "info disabled", logger.isInfoEnabled() );
assertTrue( "warn enabled", logger.isWarnEnabled() );
assertTrue( "error enabled", logger.isErrorEnabled() );
assertTrue( "fatal enabled", logger.isFatalErrorEnabled() );
}
代码示例来源:origin: plexus/plexus-logging-provider-test
private void checkFatalLevel( Logger logger )
{
assertFalse( "debug disabled", logger.isDebugEnabled() );
assertFalse( "info disabled", logger.isInfoEnabled() );
assertFalse( "warn disabled", logger.isWarnEnabled() );
assertFalse( "error disabled", logger.isErrorEnabled() );
assertTrue( "fatal enabled", logger.isFatalErrorEnabled() );
}
}
代码示例来源:origin: plexus/plexus-logging-provider-test
private void checkDebugLevel( Logger logger )
{
assertTrue( "debug enabled", logger.isDebugEnabled() );
assertTrue( "info enabled", logger.isInfoEnabled() );
assertTrue( "warn enabled", logger.isWarnEnabled() );
assertTrue( "error enabled", logger.isErrorEnabled() );
assertTrue( "fatal enabled", logger.isFatalErrorEnabled() );
}
代码示例来源:origin: plexus/plexus-logging-provider-test
private void checkInfoLevel( Logger logger )
{
assertFalse( "debug disabled", logger.isDebugEnabled() );
assertTrue( "info enabled", logger.isInfoEnabled() );
assertTrue( "warn enabled", logger.isWarnEnabled() );
assertTrue( "error enabled", logger.isErrorEnabled() );
assertTrue( "fatal enabled", logger.isFatalErrorEnabled() );
}
代码示例来源:origin: org.xwiki.platform/xwiki-core-plexus
/**
* {@inheritDoc}
*
* @see Logger#error(String, Throwable, Object...)
*/
public void error(String message, Throwable throwable, Object... objects)
{
if (this.logger.isErrorEnabled()) {
this.logger.error(formatMessage(message, objects), throwable);
}
}
代码示例来源:origin: plexus/plexus-logging-provider-test
private void checkErrorLevel( Logger logger )
{
assertFalse( "debug disabled", logger.isDebugEnabled() );
assertFalse( "info disabled", logger.isInfoEnabled() );
assertFalse( "warn disabled", logger.isWarnEnabled() );
assertTrue( "error enabled", logger.isErrorEnabled() );
assertTrue( "fatal enabled", logger.isFatalErrorEnabled() );
}
代码示例来源:origin: org.xwiki.platform/xwiki-core-plexus
/**
* {@inheritDoc}
*
* @see Logger#error(String, Object...)
*/
public void error(String message, Object... objects)
{
if (this.logger.isErrorEnabled()) {
this.logger.error(formatMessage(message, objects));
}
}
代码示例来源:origin: com.perforce.p4maven/p4maven-provider
public void receivedServerErrorLine( int key, String errorLine )
{
if ( getLogger().isErrorEnabled() )
{
getLogger().error( errorLine );
}
else if ( P4Utils.getSettings().isVerbose() )
{
System.out.println( errorLine );
}
}
代码示例来源:origin: org.jboss.galleon/galleon-maven-plugins
@Override
public void error(final Throwable cause, final CharSequence message) {
final Logger logger = getLogger();
if (logger.isErrorEnabled()) {
if (message != null) {
logger.error(message.toString(), cause);
} else {
logger.error(null, cause);
}
}
}
代码示例来源:origin: org.jboss.galleon/galleon-maven-plugin
@Override
public void error(final Throwable cause, final CharSequence message) {
final Logger logger = getLogger();
if (logger.isErrorEnabled()) {
if (message != null) {
logger.error(message.toString(), cause);
} else {
logger.error(null, cause);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!