本文整理了Java中org.pmw.tinylog.Logger.debug()
方法的一些代码示例,展示了Logger.debug()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.debug()
方法的具体详情如下:
包路径:org.pmw.tinylog.Logger
类名称:Logger
方法名:debug
暂无
代码示例来源:origin: openpnp/openpnp
public void resetVisionOffsets() {
if (visionOffset != null) {
visionOffset = null;
Logger.debug("resetVisionOffsets " + visionOffset);
}
partPitch = null;
}
代码示例来源:origin: openpnp/openpnp
@Override
public void setHomed(boolean isHomed) {
Logger.debug("setHomed({})", isHomed);
this.isHomed = isHomed;
}
}
代码示例来源:origin: openpnp/openpnp
public static void errorBox(Component parent, String title, String message) {
if (message == null) {
message = "";
}
Logger.debug("{}: {}", title, message);
message = message.replaceAll("\n", "<br/>");
message = message.replaceAll("\r", "");
message = "<html><body width=\"400\">" + message + "</body></html>";
JOptionPane.showMessageDialog(parent, message, title, JOptionPane.ERROR_MESSAGE);
}
代码示例来源:origin: openpnp/openpnp
@Override
public void actuate(ReferenceActuator actuator, boolean on) throws Exception {
Logger.debug("actuate({}, {})", actuator, on);
checkEnabled();
if (feedRateMmPerMinute > 0) {
Thread.sleep(500);
}
}
代码示例来源:origin: openpnp/openpnp
@Override
public void pick(ReferenceNozzle nozzle) throws Exception {
Logger.debug("pick({})", nozzle);
checkEnabled();
if (feedRateMmPerMinute > 0) {
Thread.sleep(500);
}
}
代码示例来源:origin: openpnp/openpnp
@Override
public void actuate(ReferenceActuator actuator, double value) throws Exception {
Logger.debug("actuate({}, {})", actuator, value);
checkEnabled();
if (feedRateMmPerMinute > 0) {
Thread.sleep(500);
}
}
代码示例来源:origin: openpnp/openpnp
@Override
public void dispense(ReferencePasteDispenser dispenser, Location startLocation,
Location endLocation, long dispenseTimeMilliseconds) throws Exception {
Logger.debug("dispense({}, {}, {}, {})",
new Object[] {dispenser, startLocation, endLocation, dispenseTimeMilliseconds});
checkEnabled();
Thread.sleep(dispenseTimeMilliseconds);
}
代码示例来源:origin: openpnp/openpnp
@Override
public Location getPickLocation() throws Exception {
if (pickLocation == null) {
pickLocation = location;
}
Logger.debug("{}.getPickLocation => {}", getName(), pickLocation);
return pickLocation;
}
代码示例来源:origin: openpnp/openpnp
@Override
public void pick(ReferenceNozzle nozzle) throws Exception {
Logger.debug("pick({})", nozzle);
checkEnabled();
if (feedRateMmPerMinute > 0) {
Thread.sleep(500);
}
}
代码示例来源:origin: openpnp/openpnp
@Override
public void actuate(ReferenceActuator actuator, double value) throws Exception {
Logger.debug("actuate({}, {})", actuator, value);
checkEnabled();
if (feedRateMmPerMinute > 0) {
Thread.sleep(500);
}
}
代码示例来源:origin: openpnp/openpnp
@Override
public void home() throws Exception {
Logger.debug("homing machine");
// if one rehomes, the isHomed flag has to be removed
this.setHomed(false);
super.home();
// if homing went well, set machine homed-flag true
this.setHomed(true);
}
代码示例来源:origin: openpnp/openpnp
@Override
public boolean canHandle(Part part) {
PartSettings partSettings = getPartSettings(part);
boolean result = (enabled && partSettings.isEnabled());
Logger.debug("{}.canHandle({}) => {}", part.getId(), result);
return result;
}
代码示例来源:origin: openpnp/openpnp
@Override
public void moveTo(Location location, double speed) throws Exception {
Logger.debug("{}.moveTo({}, {})", getName(), location, speed);
driver.moveTo(this, location, speed);
machine.fireMachineHeadActivity(head);
}
代码示例来源:origin: openpnp/openpnp
@Override
public void actuate(boolean on) throws Exception {
Logger.debug("{}.actuate({})", getName(), on);
getDriver().actuate(this, on);
getMachine().fireMachineHeadActivity(head);
}
代码示例来源:origin: openpnp/openpnp
@Override
public void moveTo(Location location, double speed) throws Exception {
Logger.debug("moveTo({}, {})", location, speed);
getDriver().moveTo(this, location, getHead().getMaxPartSpeed() * speed);
getMachine().fireMachineHeadActivity(head);
}
代码示例来源:origin: openpnp/openpnp
protected void doIndividualFiducialCheck(BoardLocation boardLocation) throws Exception {
fireTextStatus("Performing individual fiducial check.");
FiducialLocator locator = Configuration.get().getMachine().getFiducialLocator();
Location location = locator.locateBoard(boardLocation);
boardLocation.setLocationFiducialOverrides(location);
Logger.debug("Fiducial check for {}", boardLocation);
}
代码示例来源:origin: openpnp/openpnp
@Override
public void moveTo(Location location, double speed) throws Exception {
Logger.debug("{}.moveTo({}, {})", getName(), location, speed);
getDriver().moveTo(this, location, getHead().getMaxPartSpeed() * speed);
getMachine().fireMachineHeadActivity(head);
}
代码示例来源:origin: openpnp/openpnp
@Override
public void moveToSafeZ(double speed) throws Exception {
Logger.debug("{}.moveToSafeZ({})", getName(), speed);
Length safeZ = this.safeZ.convertToUnits(getLocation().getUnits());
Location l = new Location(getLocation().getUnits(), Double.NaN, Double.NaN,
safeZ.getValue(), Double.NaN);
driver.moveTo(this, l, speed);
machine.fireMachineHeadActivity(head);
}
代码示例来源:origin: openpnp/openpnp
@Override
public void moveToSafeZ(double speed) throws Exception {
Logger.debug("{}.moveToSafeZ({})", getName(), speed);
Length safeZ = this.safeZ.convertToUnits(getLocation().getUnits());
Location l = new Location(getLocation().getUnits(), Double.NaN, Double.NaN,
safeZ.getValue(), Double.NaN);
getDriver().moveTo(this, l, getHead().getMaxPartSpeed() * speed);
getMachine().fireMachineHeadActivity(head);
}
代码示例来源:origin: openpnp/openpnp
@Override
public void moveToSafeZ(double speed) throws Exception {
Logger.debug("{}.moveToSafeZ({})", getName(), speed);
Length safeZ = this.safeZ.convertToUnits(getLocation().getUnits());
Location l = new Location(getLocation().getUnits(), Double.NaN, Double.NaN,
safeZ.getValue(), Double.NaN);
getDriver().moveTo(this, l, getHead().getMaxPartSpeed() * speed);
getMachine().fireMachineHeadActivity(head);
}
内容来源于网络,如有侵权,请联系作者删除!