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

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

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

Logger.info介绍

暂无

代码示例

代码示例来源:origin: mathisdt/trackworktime

@Override
public int i(String tag, String msg) {
  Logger.info(msg);
  return Log.i(tag, msg);
}
@Override

代码示例来源:origin: mathisdt/trackworktime

@Override
public int i(String tag, String msg, Throwable tr) {
  Logger.info(tr, msg);
  return Log.i(tag, msg, tr);
}
@Override

代码示例来源:origin: mattjlewis/diozero

private void setEnabled(boolean enabled) throws IOException {
  Logger.info("setEnabled(" + enabled + ")");
  try (FileWriter writer = new FileWriter(pwmRoot.resolve("enable").toFile())) {
    writer.write(enabled ? "1" : "0");
  }
}

代码示例来源:origin: mattjlewis/diozero

private void setPeriod(int periodNs) throws IOException {
  Logger.info("setPeriod(" + periodNs + ")");
  try (FileWriter period_file = new FileWriter(pwmRoot.resolve("period").toFile())) {
    period_file.write(Integer.toString(periodNs));
  }
  this.periodNs = periodNs;
}

代码示例来源:origin: openpnp/openpnp

/**
 * Parse the given File for solder paste pads.
 * 
 * @see #parseSolderPastePads(Reader)
 * @param file
 * @return
 * @throws Exception
 */
public List<BoardPad> parseSolderPastePads(File file) throws Exception {
  Logger.info("Parsing " + file);
  return parseSolderPastePads(new FileReader(file));
}

代码示例来源:origin: mattjlewis/diozero

@Override
protected void closeDevice() throws RuntimeIOException {
  Logger.info("closeDevice()");
  disableListener();
}

代码示例来源:origin: mathisdt/trackworktime

@Override
public void onLowMemory() {
  Logger.info("low memory for application");
  super.onLowMemory();
}

代码示例来源:origin: mattjlewis/diozero

public static void main(String[] args) {
  initialise();
  Logger.info(osReleaseProperties);
  Logger.info(lookupLocalBoardInfo());
}

代码示例来源:origin: pingao777/markdown-preview-sync

public void destroy() {
  channel.close();
  channelGroup.close();
  group.shutdownGracefully();
  Logger.info("Markdown server shutdown success");
}

代码示例来源:origin: pingao777/markdown-preview-sync

@Override
public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception {
  if (evt instanceof WebSocketServerProtocolHandler.HandshakeComplete) {
    Logger.info("Channel {} joined", ctx.channel());
    server.addChannel(ctx.channel());
  } else {
    super.userEventTriggered(ctx, evt);
  }
}

代码示例来源:origin: mattjlewis/diozero

protected void setPolarity(Polarity polarity) {
  Logger.info("setPolarity(" + polarity + ")");
  try (FileWriter writer = new FileWriter(pwmRoot.resolve("polarity").toFile())) {
    writer.write(polarity.getValue());
    writer.flush();
  } catch (IOException e) {
    Logger.error(e, "Error setting polarity to {}: {}", polarity.getValue(), e);
  }
}

代码示例来源:origin: mathisdt/trackworktime

@Override
public void onDestroy() {
  Logger.info("destroying LocationTrackerService");
  locationTracker.stopTrackingByLocation();
  isRunning.set(false);
  stopSelf();
}

代码示例来源:origin: mathisdt/trackworktime

/**
 * Stop the periodic checks to track by location.
 */
public void stopTrackingByLocation() {
  // execute this anyway to prevent confusion, e.g. after crashes:
  locationManager.removeUpdates(this);
  timerManager.deactivateTrackingMethod(TrackingMethod.LOCATION);
  if (isTrackingByLocation.compareAndSet(true, false)) {
    Logger.info("stopped location-based tracking");
  }
}

代码示例来源:origin: mattjlewis/diozero

private void setHardwarePwmFrequency(int pwmFrequency) {
  // TODO Validate the requested PWM frequency
  hardwarePwmRange = DEFAULT_HARDWARE_PWM_RANGE;
  Gpio.pwmSetRange(hardwarePwmRange);
  int divisor = PI_PWM_CLOCK_BASE_FREQUENCY / hardwarePwmRange / pwmFrequency;
  Gpio.pwmSetClock(divisor);
  Gpio.pwmSetMode(Gpio.PWM_MODE_MS);
  this.boardPwmFrequency = pwmFrequency;
  Logger.info("setHardwarePwmFrequency({}) - range={}, divisor={}",
      Integer.valueOf(pwmFrequency), Integer.valueOf(hardwarePwmRange), Integer.valueOf(divisor));
}

代码示例来源:origin: mattjlewis/diozero

private void setHardwarePwmFrequency(int pwmFrequency) {
  // TODO Validate the requested PWM frequency
  hardwarePwmRange = DEFAULT_HARDWARE_PWM_RANGE;
  Gpio.pwmSetRange(hardwarePwmRange);
  int divisor = PI_PWM_CLOCK_BASE_FREQUENCY / hardwarePwmRange / pwmFrequency;
  Gpio.pwmSetClock(divisor);
  Gpio.pwmSetMode(Gpio.PWM_MODE_MS);
  this.boardPwmFrequency = pwmFrequency;
  Logger.info("setHardwarePwmFrequency({}) - range={}, divisor={}",
      Integer.valueOf(pwmFrequency), Integer.valueOf(hardwarePwmRange), Integer.valueOf(divisor));
}

代码示例来源:origin: mattjlewis/diozero

@Override
public void close() {
  Logger.info("close()");
  super.close();
  if (ioDevice != null) {
    try { ioDevice.stop(); } catch (Exception e) {}
  }
}

代码示例来源:origin: mathisdt/trackworktime

@Override
public void onDestroy() {
  Logger.info("destroying WifiTrackerService");
  wifiTracker.stopTrackingByWifi();
  wifiScanner.unregister(getApplicationContext());
  wifiScanner.setWifiScanListener(null);
  isRunning.set(false);
  stopSelf();
}

代码示例来源:origin: openpnp/openpnp

@Override
  public void actionPerformed(ActionEvent e) {
    CameraItem selectedCameraItem = (CameraItem) camerasComboBox.getSelectedItem();
    if(selectedCameraItem != null) {
      Camera currentCamera = selectedCameraItem.getCamera();
      Location cameraLocation = currentCamera.getLocation();
      Location headOffsets = cameraLocation.subtract(nozzleMarkLocation.getLocation());
      nozzleOffsetLocation.setLocation(headOffsets);
      Logger.info("Nozzle offset wizard set head offset to location: " + headOffsets.toString());
    }
  }
};

代码示例来源:origin: pingao777/markdown-preview-sync

public void broadcast(String command, String path, String content, int bottom) {
  String html = HtmlUtils.markdown2Html(HtmlUtils.plugBottomMarker(content, bottom));
  List<MarkDownUnit> units = JSoupUtils.diff(path, html);
  WebSocketMsg msg = new WebSocketMsg(command, path, units);
  String json = GSON.toJson(msg);
  channelGroup.writeAndFlush(new TextWebSocketFrame(json));
  Logger.info("Broadcast bottom {} msg {} success", bottom, msg);
}

代码示例来源:origin: mathisdt/trackworktime

@Override
public void onTerminate() {
  Logger.info("terminating application");
  Basics.getOrCreateInstance(getApplicationContext()).getDao().close();
  Basics.getInstance().unregisterThirdPartyReceiver();
  super.onTerminate();
}

相关文章