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

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

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

Logger.info介绍

[英]Log a info priority event.
[中]记录信息优先级事件。

代码示例

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

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

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

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

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

/**
 * Logs a message with <code>org.apache.log.Priority.INFO</code>.
 *
 * @param message to log
 * @see org.apache.commons.logging.Log#info(Object)
 */
public void info(Object message) {
  if (message != null) {
    getLogger().info(String.valueOf(message));
  }
}

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

/**
 * Logs a message with <code>org.apache.log.Priority.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 (message != null) {
    getLogger().info(String.valueOf(message), t);
  }
}

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

/**
 * Logs a message with <code>org.apache.log.Priority.INFO</code>.
 * 
 * @param message to log
 * @see org.apache.commons.logging.Log#info(Object)
 */
public void info(Object message) {
  if (message != null) {
    getLogger().info(String.valueOf(message));
  }
}

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

/**
 * Logs a message with <code>org.apache.log.Priority.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 (message != null) {
    getLogger().info(String.valueOf(message), t);
  }
}

代码示例来源:origin: kg.apc/perfmon

protected void connectUDPClient(SocketAddress remoteAddr, DatagramChannel channel, PerfMonMetricGetter getter) throws IOException {
    log.info("Connecting new UDP client");
    synchronized (udpConnections) {
      numConnections++;
      udpConnections.put(remoteAddr, getter);
    }
  }
}

代码示例来源:origin: kg.apc/jmeter-plugins-standard

@Override
public void addNode(Object o, HashTree hashTree) {
  if (o instanceof TestElement) {
    TestElement el = (TestElement) o;
    log.info(StringUtils.repeat(" ", indent) + "[" + el.getClass().getSimpleName() + "] " + el.getName());
  } else {
    log.info(StringUtils.repeat(" ", indent) + o);
  }
  indent++;
}

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

/**
 * Logs a message with <code>org.apache.log.Priority.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 (message != null) {
    getLogger().info(String.valueOf(message), t);
  }
}

代码示例来源:origin: kg.apc/jmeter-plugins-extras

@Override
public void stopServer() {
  log.info("HTTP Simple Table Server is shutting down...");
  stop();
}

代码示例来源:origin: kg.apc/jmeter-plugins-standard

@Override
public void start(int groupIndex, ListenerNotifier listenerNotifier, ListedHashTree testTree, StandardJMeterEngine engine) {
  super.start(groupIndex, listenerNotifier, testTree, engine);
  synchronized (this) {
    try {
      wait();
      log.info("Got first arrival");
    } catch (InterruptedException e) {
      log.warn("Interrupted start", e);
    }
  }
}

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

@Override
public void saveGraphToCSV(File file) throws IOException {
  log.info("Saving CSV to " + file.getAbsolutePath());
  mergeService = new MergeResultsService();
  collector.setFilename(file.getName());
  mergeService.mergeSamples((CorrectedResultCollector) collector,
      samples);
}

代码示例来源:origin: kg.apc/perfmon

public void notifyDisonnected() throws IOException {
  numConnections--;
  if (autoShutdown) {
    log.debug("Num connections: " + numConnections);
  }
  if (numConnections == 0 && autoShutdown) {
    log.info("Auto-shutdown triggered");
    shutdownConnections();
  }
}

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

private void setupSaving(String fileName) {
  SampleSaveConfiguration config = getSaveConfig();
  JMeterPluginsUtils.doBestCSVSetup(config);
  setSaveConfig(config);
  setFilename(fileName);
  log.info("DbMon metrics will be stored in " + new File(fileName).getAbsolutePath());
}

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

private void setupSaving(String fileName) {
  SampleSaveConfiguration config = getSaveConfig();
  JMeterPluginsUtils.doBestCSVSetup(config);
  setSaveConfig(config);
  setFilename(fileName);
  log.info("JMXMon metrics will be stored in " + new File(fileName).getAbsolutePath());
}

代码示例来源:origin: kg.apc/jmeter-plugins-perfmon

private void setupSaving(String fileName) {
  SampleSaveConfiguration config = getSaveConfig();
  JMeterPluginsUtils.doBestCSVSetup(config);
  setSaveConfig(config);
  setFilename(fileName);
  log.info("PerfMon metrics will be stored in " + new File(fileName).getAbsolutePath());
}

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

private void setupSaving(String fileName) {
  SampleSaveConfiguration config = getSaveConfig();
  JMeterPluginsUtils.doBestCSVSetup(config);
  setSaveConfig(config);
  setFilename(fileName);
  log.info(getPrefix()+" monitoring metrics will be stored in " + new File(fileName).getAbsolutePath());
}

代码示例来源:origin: kg.apc/perfmon

private void listenUDP() throws IOException {
  if (udpPort > 0) {
    log.info("Binding UDP to " + udpPort);
    DatagramChannel udp = DatagramChannel.open();
    udp.socket().bind(new InetSocketAddress(udpPort));
    udp.configureBlocking(false);
    udp.register(acceptSelector, SelectionKey.OP_READ);
    udp.register(sendSelector, SelectionKey.OP_WRITE);
  }
}

代码示例来源:origin: kg.apc/perfmon

static void logAvailableInterfaces(SigarProxy sigar) {
  log.info("*** Logging available network interfaces ***");
  try {
    String[] list = sigar.getNetInterfaceList();
    for (int n = 0; n < list.length; n++) {
      NetInterfaceConfig ifc = sigar.getNetInterfaceConfig(list[n]);
      log.info("Network interface: iface=" + ifc.getName() + " addr=" + ifc.getAddress() + " type=" + ifc.getType());
    }
  } catch (SigarException e) {
    log.debug("Can't get network info", e);
  }
}

代码示例来源:origin: kg.apc/jmeter-plugins-webdriver

@Override
public void iterationStart(LoopIterationEvent loopIterationEvent) {
  if (isRecreateBrowserOnIterationStart() && !isDevMode()) {
    final T browser = getThreadBrowser();
    quitBrowser(browser);
    setThreadBrowser(getPreparedBrowser());
    LOGGER.info("Created browser object: " + browser);
  }
  getThreadContext().getVariables().putObject(WebDriverConfig.BROWSER, getThreadBrowser());
}

相关文章