org.apache.log.Logger类的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(140)

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

Logger介绍

[英]The object interacted with by client objects to perform logging.
[中]与客户端对象交互以执行日志记录的对象。

代码示例

代码示例来源:origin: org.freemarker/freemarker

@Override
public void debug(String message, Throwable t) {
  logger.debug(message, t);
}

代码示例来源:origin: org.freemarker/freemarker

@Override
public void warn(String message) {
  logger.warn(message);
}

代码示例来源:origin: org.freemarker/freemarker

@Override
public void error(String message) {
  logger.error(message);
}

代码示例来源:origin: org.freemarker/freemarker

@Override
public void info(String message) {
  logger.info(message);
}

代码示例来源:origin: undera/jmeter-plugins

@Override
public void testEnded(String s) {
  releaseAllPoolThreads();
  super.testEnded(s);
  log.info("Done " + arrivalsCount.longValue() + " arrivals, " + completionsCount.longValue() + " completions, " + abandonsCount.longValue() + " abandonments");
  log.debug("Pool size: " + poolThreads.size());
}

代码示例来源:origin: org.freemarker/freemarker

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

代码示例来源:origin: org.freemarker/freemarker

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

代码示例来源:origin: org.freemarker/freemarker

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

代码示例来源:origin: org.freemarker/freemarker

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

代码示例来源:origin: org.apache.avalon.logkit/avalon-logkit

/**
 * Log a warn priority event.
 *
 * @param message the message
 */
public final void warn( final String message )
{
  if( isWarnEnabled() )
  {
    output( Priority.WARN, message, null );
  }
}

代码示例来源:origin: org.apache.avalon.logkit/avalon-logkit

/**
 * Log a info priority event.
 *
 * @param message the message
 */
public final void info( final String message )
{
  if( isInfoEnabled() )
  {
    output( Priority.INFO, message, null );
  }
}

代码示例来源:origin: org.apache.avalon.logkit/avalon-logkit

/**
 * Log a error priority event.
 *
 * @param message the message
 */
public final void error( final String message )
{
  if( isErrorEnabled() )
  {
    output( Priority.ERROR, message, null );
  }
}

代码示例来源:origin: org.freemarker/freemarker

@Override
public void info(String message, Throwable t) {
  logger.info(message, t);
}

代码示例来源:origin: undera/jmeter-plugins

public void testEnded(String string) {
  log.debug("Test ended captured");
  if (getFilename() != null && getFilename().length() > 0) {
    File file = new File(getFilename());
    if (file.exists()) {
      log.info("Remove lockfile from " + getFilename());
      file.delete();
    }
  }
}

代码示例来源:origin: commons-logging/commons-logging

/**
 * Checks whether the <code>LogKit</code> logger will log messages of priority <code>DEBUG</code>.
 */
public boolean isTraceEnabled() {
  return getLogger().isDebugEnabled();
}

代码示例来源:origin: commons-logging/commons-logging

/**
 * Checks whether the <code>LogKit</code> logger will log messages of priority <code>INFO</code>.
 */
public boolean isInfoEnabled() {
  return getLogger().isInfoEnabled();
}

代码示例来源:origin: commons-logging/commons-logging

/**
   * Checks whether the <code>LogKit</code> logger will log messages of priority <code>WARN</code>.
   */
  public boolean isWarnEnabled() {
    return getLogger().isWarnEnabled();
  }
}

代码示例来源:origin: commons-logging/commons-logging

/**
 * Checks whether the <code>LogKit</code> logger will log messages of priority <code>ERROR</code>.
 */
public boolean isErrorEnabled() {
  return getLogger().isErrorEnabled();
}

代码示例来源:origin: org.freemarker/freemarker

@Override
public void debug(String message) {
  logger.debug(message);
}

代码示例来源:origin: org.freemarker/freemarker

@Override
public void warn(String message, Throwable t) {
  logger.warn(message, t);
}

相关文章