org.modeshape.common.logging.Logger.isErrorEnabled()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(181)

本文整理了Java中org.modeshape.common.logging.Logger.isErrorEnabled()方法的一些代码示例,展示了Logger.isErrorEnabled()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.isErrorEnabled()方法的具体详情如下:
包路径:org.modeshape.common.logging.Logger
类名称:Logger
方法名:isErrorEnabled

Logger.isErrorEnabled介绍

[英]Return whether messages at the ERROR level are being logged.
[中]返回是否正在记录错误级别的消息。

代码示例

代码示例来源:origin: ModeShape/modeshape

@Override
public boolean isErrorEnabled() {
  return logger.isErrorEnabled();
}

代码示例来源:origin: org.fcrepo/modeshape-jcr

@Override
public boolean isErrorEnabled() {
  return logger.isErrorEnabled();
}

代码示例来源:origin: org.modeshape/modeshape-web-jcr

@Override
public boolean isErrorEnabled() {
  return logger.isErrorEnabled();
}

代码示例来源:origin: ModeShape/modeshape

@Override
public boolean isErrorEnabled() {
  return logger.isErrorEnabled();
}

代码示例来源:origin: ModeShape/modeshape

@Override
public void error( String message,
          Object... params ) {
  if (logger.isErrorEnabled()) {
    logger.error(new TextI18n(message), params);
  }
}

代码示例来源:origin: ModeShape/modeshape

@Override
public void error( Throwable t,
          String message,
          Object... params ) {
  if (logger.isErrorEnabled()) {
    logger.error(t, new TextI18n(message), params);
  }
}

代码示例来源:origin: org.fcrepo/modeshape-jcr

@Override
public void error( Throwable t,
          String message,
          Object... params ) {
  if (logger.isErrorEnabled()) {
    logger.error(t, new TextI18n(message), params);
  }
}

代码示例来源:origin: ModeShape/modeshape

@Override
public void error( String message,
          Object... params ) {
  if (logger.isErrorEnabled()) {
    logger.error(new TextI18n(message), params);
  }
}

代码示例来源:origin: org.modeshape/modeshape-web-jcr

@Override
public void error( Throwable t,
          String message,
          Object... params ) {
  if (logger.isErrorEnabled()) {
    logger.error(t, new TextI18n(message), params);
  }
}

代码示例来源:origin: org.fcrepo/modeshape-jcr

@Override
public void error( String message,
          Object... params ) {
  if (logger.isErrorEnabled()) {
    logger.error(new TextI18n(message), params);
  }
}

代码示例来源:origin: ModeShape/modeshape

@Override
public void error( Throwable t,
          String message,
          Object... params ) {
  if (logger.isErrorEnabled()) {
    logger.error(t, new TextI18n(message), params);
  }
}

代码示例来源:origin: org.modeshape/modeshape-web-jcr

@Override
public void error( String message,
          Object... params ) {
  if (logger.isErrorEnabled()) {
    logger.error(new TextI18n(message), params);
  }
}

代码示例来源:origin: ModeShape/modeshape

@Test
public void shouldSupportAskingWhetherLoggingLevelsAreEnabled() {
  logger.isErrorEnabled();
  logger.isWarnEnabled();
  logger.isInfoEnabled();
  logger.isDebugEnabled();
  logger.isTraceEnabled();
}

相关文章