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

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

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

Logger.debug介绍

暂无

代码示例

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

  1. public void resetVisionOffsets() {
  2. if (visionOffset != null) {
  3. visionOffset = null;
  4. Logger.debug("resetVisionOffsets " + visionOffset);
  5. }
  6. partPitch = null;
  7. }

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

  1. @Override
  2. public void setHomed(boolean isHomed) {
  3. Logger.debug("setHomed({})", isHomed);
  4. this.isHomed = isHomed;
  5. }
  6. }

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

  1. public static void errorBox(Component parent, String title, String message) {
  2. if (message == null) {
  3. message = "";
  4. }
  5. Logger.debug("{}: {}", title, message);
  6. message = message.replaceAll("\n", "<br/>");
  7. message = message.replaceAll("\r", "");
  8. message = "<html><body width=\"400\">" + message + "</body></html>";
  9. JOptionPane.showMessageDialog(parent, message, title, JOptionPane.ERROR_MESSAGE);
  10. }

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

  1. @Override
  2. public void actuate(ReferenceActuator actuator, boolean on) throws Exception {
  3. Logger.debug("actuate({}, {})", actuator, on);
  4. checkEnabled();
  5. if (feedRateMmPerMinute > 0) {
  6. Thread.sleep(500);
  7. }
  8. }

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

  1. @Override
  2. public void pick(ReferenceNozzle nozzle) throws Exception {
  3. Logger.debug("pick({})", nozzle);
  4. checkEnabled();
  5. if (feedRateMmPerMinute > 0) {
  6. Thread.sleep(500);
  7. }
  8. }

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

  1. @Override
  2. public void actuate(ReferenceActuator actuator, double value) throws Exception {
  3. Logger.debug("actuate({}, {})", actuator, value);
  4. checkEnabled();
  5. if (feedRateMmPerMinute > 0) {
  6. Thread.sleep(500);
  7. }
  8. }

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

  1. @Override
  2. public void dispense(ReferencePasteDispenser dispenser, Location startLocation,
  3. Location endLocation, long dispenseTimeMilliseconds) throws Exception {
  4. Logger.debug("dispense({}, {}, {}, {})",
  5. new Object[] {dispenser, startLocation, endLocation, dispenseTimeMilliseconds});
  6. checkEnabled();
  7. Thread.sleep(dispenseTimeMilliseconds);
  8. }

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

  1. @Override
  2. public Location getPickLocation() throws Exception {
  3. if (pickLocation == null) {
  4. pickLocation = location;
  5. }
  6. Logger.debug("{}.getPickLocation => {}", getName(), pickLocation);
  7. return pickLocation;
  8. }

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

  1. @Override
  2. public void pick(ReferenceNozzle nozzle) throws Exception {
  3. Logger.debug("pick({})", nozzle);
  4. checkEnabled();
  5. if (feedRateMmPerMinute > 0) {
  6. Thread.sleep(500);
  7. }
  8. }

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

  1. @Override
  2. public void actuate(ReferenceActuator actuator, double value) throws Exception {
  3. Logger.debug("actuate({}, {})", actuator, value);
  4. checkEnabled();
  5. if (feedRateMmPerMinute > 0) {
  6. Thread.sleep(500);
  7. }
  8. }

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

  1. @Override
  2. public void home() throws Exception {
  3. Logger.debug("homing machine");
  4. // if one rehomes, the isHomed flag has to be removed
  5. this.setHomed(false);
  6. super.home();
  7. // if homing went well, set machine homed-flag true
  8. this.setHomed(true);
  9. }

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

  1. @Override
  2. public boolean canHandle(Part part) {
  3. PartSettings partSettings = getPartSettings(part);
  4. boolean result = (enabled && partSettings.isEnabled());
  5. Logger.debug("{}.canHandle({}) => {}", part.getId(), result);
  6. return result;
  7. }

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

  1. @Override
  2. public void moveTo(Location location, double speed) throws Exception {
  3. Logger.debug("{}.moveTo({}, {})", getName(), location, speed);
  4. driver.moveTo(this, location, speed);
  5. machine.fireMachineHeadActivity(head);
  6. }

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

  1. @Override
  2. public void actuate(boolean on) throws Exception {
  3. Logger.debug("{}.actuate({})", getName(), on);
  4. getDriver().actuate(this, on);
  5. getMachine().fireMachineHeadActivity(head);
  6. }

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

  1. @Override
  2. public void moveTo(Location location, double speed) throws Exception {
  3. Logger.debug("moveTo({}, {})", location, speed);
  4. getDriver().moveTo(this, location, getHead().getMaxPartSpeed() * speed);
  5. getMachine().fireMachineHeadActivity(head);
  6. }

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

  1. protected void doIndividualFiducialCheck(BoardLocation boardLocation) throws Exception {
  2. fireTextStatus("Performing individual fiducial check.");
  3. FiducialLocator locator = Configuration.get().getMachine().getFiducialLocator();
  4. Location location = locator.locateBoard(boardLocation);
  5. boardLocation.setLocationFiducialOverrides(location);
  6. Logger.debug("Fiducial check for {}", boardLocation);
  7. }

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

  1. @Override
  2. public void moveTo(Location location, double speed) throws Exception {
  3. Logger.debug("{}.moveTo({}, {})", getName(), location, speed);
  4. getDriver().moveTo(this, location, getHead().getMaxPartSpeed() * speed);
  5. getMachine().fireMachineHeadActivity(head);
  6. }

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

  1. @Override
  2. public void moveToSafeZ(double speed) throws Exception {
  3. Logger.debug("{}.moveToSafeZ({})", getName(), speed);
  4. Length safeZ = this.safeZ.convertToUnits(getLocation().getUnits());
  5. Location l = new Location(getLocation().getUnits(), Double.NaN, Double.NaN,
  6. safeZ.getValue(), Double.NaN);
  7. driver.moveTo(this, l, speed);
  8. machine.fireMachineHeadActivity(head);
  9. }

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

  1. @Override
  2. public void moveToSafeZ(double speed) throws Exception {
  3. Logger.debug("{}.moveToSafeZ({})", getName(), speed);
  4. Length safeZ = this.safeZ.convertToUnits(getLocation().getUnits());
  5. Location l = new Location(getLocation().getUnits(), Double.NaN, Double.NaN,
  6. safeZ.getValue(), Double.NaN);
  7. getDriver().moveTo(this, l, getHead().getMaxPartSpeed() * speed);
  8. getMachine().fireMachineHeadActivity(head);
  9. }

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

  1. @Override
  2. public void moveToSafeZ(double speed) throws Exception {
  3. Logger.debug("{}.moveToSafeZ({})", getName(), speed);
  4. Length safeZ = this.safeZ.convertToUnits(getLocation().getUnits());
  5. Location l = new Location(getLocation().getUnits(), Double.NaN, Double.NaN,
  6. safeZ.getValue(), Double.NaN);
  7. getDriver().moveTo(this, l, getHead().getMaxPartSpeed() * speed);
  8. getMachine().fireMachineHeadActivity(head);
  9. }

相关文章