org.apache.avalon.framework.logger.Logger.info()方法的使用及代码示例

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

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

Logger.info介绍

[英]Log a info message.
[中]记录一条信息消息。

代码示例

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

/**
 * Logs a message with <code>org.apache.avalon.framework.logger.Logger.info</code>.
 *
 * @param message to log
 * @see org.apache.commons.logging.Log#info(Object)
 */
public void info(Object message) {
  if (getLogger().isInfoEnabled()) {
    getLogger().info(String.valueOf(message));
  }
}

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

/**
 * Logs a message with <code>org.apache.avalon.framework.logger.Logger.info</code>.
 *
 * @param message to log
 * @param t log this cause
 * @see org.apache.commons.logging.Log#info(Object, Throwable)
 */
public void info(Object message, Throwable t) {
  if (getLogger().isInfoEnabled()) {
    getLogger().info(String.valueOf(message), t);
  }
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * Logs a message with
 * <code>org.apache.avalon.framework.logger.Logger.info</code>.
 * 
 * @param message to log
 * @param t log this cause
 * @see org.apache.commons.logging.Log#info(Object, Throwable)
 */
public void info(Object message, Throwable t) {
  if (getLogger().isInfoEnabled()) getLogger().info(String.valueOf(message), t);
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * Logs a message with
 * <code>org.apache.avalon.framework.logger.Logger.info</code>.
 * 
 * @param message to log
 * @see org.apache.commons.logging.Log#info(Object)
 */
public void info(Object message) {
  if (getLogger().isInfoEnabled()) getLogger().info(String.valueOf(message));
}

代码示例来源:origin: org.codehaus.plexus/plexus-ftpd

/**
   * Close the user manager - remove existing entries.
   */
  public void dispose() {
    getLogger().info("Closing properties user manager...");
    if (mUserData != null) {
      mUserData.clear();
      mUserData = null;
    }
  }
}

代码示例来源:origin: org.apache.excalibur.fortress.container/excalibur-fortress-container-impl

public Object lookup(String role) throws ServiceException
{
  if ( Pipe.class.getName().equals( role ) )
  {
    m_ealogger.info("Using deprecated role (Queue.ROLE) for the Command Sink.  Use \"Sink.ROLE\" instead.");
    return lookup(Sink.class.getName());
  }
  return super.lookup( role );
}

代码示例来源:origin: apache/activemq-artemis

/**
 * Logs a message with <code>org.apache.avalon.framework.logger.Logger.info</code>.
 *
 * @param message to log
 * @param t log this cause
 * @see org.apache.activemq.artemis.shaded.org.apache.commons.logging.Log#info(Object, Throwable)
 */
public void info(Object message, Throwable t) {
  if (getLogger().isInfoEnabled()) {
    getLogger().info(String.valueOf(message), t);
  }
}

代码示例来源:origin: apache/activemq-artemis

/**
 * Logs a message with <code>org.apache.avalon.framework.logger.Logger.info</code>.
 *
 * @param message to log
 * @see org.apache.activemq.artemis.shaded.org.apache.commons.logging.Log#info(Object)
 */
public void info(Object message) {
  if (getLogger().isInfoEnabled()) {
    getLogger().info(String.valueOf(message));
  }
}

代码示例来源:origin: apache/activemq-artemis

/**
 * Logs a message with <code>org.apache.avalon.framework.logger.Logger.info</code>.
 *
 * @param message to log
 * @see org.apache.activemq.artemis.shaded.org.apache.commons.logging.Log#info(Object)
 */
public void info(Object message) {
  if (getLogger().isInfoEnabled()) {
    getLogger().info(String.valueOf(message));
  }
}

代码示例来源:origin: apache/activemq-artemis

/**
 * Logs a message with <code>org.apache.avalon.framework.logger.Logger.info</code>.
 *
 * @param message to log
 * @param t log this cause
 * @see org.apache.activemq.artemis.shaded.org.apache.commons.logging.Log#info(Object, Throwable)
 */
public void info(Object message, Throwable t) {
  if (getLogger().isInfoEnabled()) {
    getLogger().info(String.valueOf(message), t);
  }
}

代码示例来源:origin: org.apache.activemq/artemis-jms-client-all

/**
 * Logs a message with <code>org.apache.avalon.framework.logger.Logger.info</code>.
 *
 * @param message to log
 * @see org.apache.activemq.artemis.shaded.org.apache.commons.logging.Log#info(Object)
 */
public void info(Object message) {
  if (getLogger().isInfoEnabled()) {
    getLogger().info(String.valueOf(message));
  }
}

代码示例来源:origin: org.apache.openjpa/openjpa-all

/**
 * Logs a message with <code>org.apache.avalon.framework.logger.Logger.info</code>.
 *
 * @param message to log
 * @see org.apache.commons.logging.Log#info(Object)
 */
public void info(Object message) {
  if (getLogger().isInfoEnabled()) {
    getLogger().info(String.valueOf(message));
  }
}

代码示例来源:origin: org.apache.activemq/artemis-jms-client-all

/**
 * Logs a message with <code>org.apache.avalon.framework.logger.Logger.info</code>.
 *
 * @param message to log
 * @param t log this cause
 * @see org.apache.activemq.artemis.shaded.org.apache.commons.logging.Log#info(Object, Throwable)
 */
public void info(Object message, Throwable t) {
  if (getLogger().isInfoEnabled()) {
    getLogger().info(String.valueOf(message), t);
  }
}

代码示例来源:origin: org.apache.tomcat.extras/tomcat-extras-juli-adapters

/**
 * Logs a message with <code>org.apache.avalon.framework.logger.Logger.info</code>.
 *
 * @param message to log
 * @param t log this cause
 * @see org.apache.juli.logging.Log#info(Object, Throwable)
 */
public void info(Object message, Throwable t) {
  if (getLogger().isInfoEnabled()) {
    getLogger().info(String.valueOf(message), t);
  }
}

代码示例来源:origin: org.apache.tomcat.extras/tomcat-extras-juli-adapters

/**
 * Logs a message with <code>org.apache.avalon.framework.logger.Logger.info</code>.
 *
 * @param message to log
 * @see org.apache.juli.logging.Log#info(Object)
 */
public void info(Object message) {
  if (getLogger().isInfoEnabled()) {
    getLogger().info(String.valueOf(message));
  }
}

代码示例来源:origin: org.codehaus.plexus/plexus-ftpd

/**
 * Increment upload count.
 */
void setUpload(File fl, FtpUser user, long sz) {
  ++miNbrUpload;
  mlBytesUpload += sz;
  mConfig.getLogger().info("File upload : " + user.getName() + " - " + fl.getAbsolutePath());
  notifyUpload(fl, user);
}

代码示例来源:origin: org.codehaus.plexus/plexus-ftpd

/**
 * Increment delete count.
 */
void setDelete(File fl, FtpUser user) {
  ++miNbrDelete;
  mConfig.getLogger().info("File delete : " + user.getName() + " - " + fl.getAbsolutePath());
  notifyDelete(fl, user);
}

代码示例来源:origin: org.apache.openjpa/openjpa-all

/**
 * Logs a message with <code>org.apache.avalon.framework.logger.Logger.info</code>.
 *
 * @param message to log
 * @param t log this cause
 * @see org.apache.commons.logging.Log#info(Object, Throwable)
 */
public void info(Object message, Throwable t) {
  if (getLogger().isInfoEnabled()) {
    getLogger().info(String.valueOf(message), t);
  }
}

代码示例来源:origin: org.apache.fulcrum/fulcrum-testcontainer

/**
 * Disposes of the container and releases resources
 */
public void dispose()
{
  getLogger().debug("Disposing of container...");
  this.manager.dispose();
  getLogger().info("Container has been disposed.");
}
/**

代码示例来源:origin: org.apache.fulcrum/fulcrum-yaafi

public void onEntry(AvalonInterceptorContext interceptorContext) {
  if (this.isServiceMonitored(interceptorContext) && this.getLogger().isInfoEnabled() == true) {
    String msg = this.toString(interceptorContext, null, ON_ENTRY);
    this.getLogger().info(msg);
    this.createStopWatch(interceptorContext);
  }
}

相关文章