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

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

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

Logger.debug介绍

[英]Log a debug priority event.
[中]记录调试优先级事件。

代码示例

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

  1. @Override
  2. public void debug(String message, Throwable t) {
  3. logger.debug(message, t);
  4. }

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

  1. @Override
  2. public void debug(String message) {
  3. logger.debug(message);
  4. }

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

  1. /**
  2. * Logs a message with <code>org.apache.log.Priority.DEBUG</code>.
  3. *
  4. * @param message to log
  5. * @param t log this cause
  6. * @see org.apache.commons.logging.Log#debug(Object, Throwable)
  7. */
  8. public void debug(Object message, Throwable t) {
  9. if (message != null) {
  10. getLogger().debug(String.valueOf(message), t);
  11. }
  12. }

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

  1. /**
  2. * Logs a message with <code>org.apache.log.Priority.DEBUG</code>.
  3. *
  4. * @param message to log
  5. * @see org.apache.commons.logging.Log#debug(Object)
  6. */
  7. public void debug(Object message) {
  8. if (message != null) {
  9. getLogger().debug(String.valueOf(message));
  10. }
  11. }

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

  1. /**
  2. * Logs a message with <code>org.apache.log.Priority.DEBUG</code>.
  3. *
  4. * @param message to log
  5. * @see org.apache.commons.logging.Log#debug(Object)
  6. */
  7. public void debug(Object message) {
  8. if (message != null) {
  9. getLogger().debug(String.valueOf(message));
  10. }
  11. }

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

  1. /**
  2. * Logs a message with <code>org.apache.log.Priority.DEBUG</code>.
  3. *
  4. * @param message to log
  5. * @param t log this cause
  6. * @see org.apache.commons.logging.Log#debug(Object, Throwable)
  7. */
  8. public void debug(Object message, Throwable t) {
  9. if (message != null) {
  10. getLogger().debug(String.valueOf(message), t);
  11. }
  12. }

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

  1. @Override
  2. public boolean drawImage(Image img, int x, int y, ImageObserver observer)
  3. {
  4. log.debug("Draw image");
  5. return true;
  6. }

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

  1. @Override
  2. protected void implCloseChannel() throws IOException {
  3. log.debug("Emulating close file channel");
  4. }
  5. }

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

  1. @Override
  2. public void drawString(String str, int x, int y)
  3. {
  4. log.debug("drawString: " + str + " " + x + " " + y);
  5. if (x < 0 || y < 0)
  6. System.err.println("Value below zero!");
  7. }

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

  1. @Override
  2. public boolean connect(SocketAddress remote) throws IOException {
  3. log.debug("Emulating connect to " + remote.toString());
  4. return true;
  5. }

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

  1. @Override
  2. public void fillRect(int x, int y, int width, int height)
  3. {
  4. log.debug("fillRect " + x + " " + y + " " + width + " " + height);
  5. if (x<0 || y <0)
  6. System.err.println("Value below zero!");
  7. if (width<=0 || height <=0)
  8. System.err.println("Value is zero!");
  9. }

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

  1. public void testStarted() {
  2. log.debug("Start testStarted");
  3. super.testStarted();
  4. log.debug("End testStarted host");
  5. }

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

  1. /**
  2. * Logs a message with <code>org.apache.log.Priority.DEBUG</code>.
  3. *
  4. * @param message to log
  5. * @see org.apache.activemq.artemis.shaded.org.apache.commons.logging.Log#debug(Object)
  6. */
  7. public void debug(Object message) {
  8. if (message != null) {
  9. getLogger().debug(String.valueOf(message));
  10. }
  11. }

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

  1. public HttpSimpleTableControlGui() {
  2. super();
  3. log.debug("Creating HttpSimpleTableControlGui");
  4. init();
  5. }

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

  1. @Override
  2. public synchronized void run() {
  3. while (true) {
  4. processConnectors();
  5. try {
  6. this.wait(interval * 1000);
  7. } catch (InterruptedException ex) {
  8. log.debug("Monitoring thread was interrupted", ex);
  9. break;
  10. }
  11. }
  12. }

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

  1. @Override
  2. public void setColor(Color c)
  3. {
  4. log.debug("Setcolor: " + c.toString());
  5. }

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

  1. public void changeUnitInLabels(String unit) {
  2. String oldUnit = unit.equals(AbstractDynamicThreadGroup.UNIT_MINUTES) ? AbstractDynamicThreadGroup.UNIT_SECONDS : AbstractDynamicThreadGroup.UNIT_MINUTES;
  3. String oldUnitStr = AbstractDynamicThreadGroup.getUnitStr(oldUnit);
  4. String unitStr = AbstractDynamicThreadGroup.getUnitStr(unit);
  5. log.debug(oldUnit + " " + oldUnitStr + "=>" + unitStr);
  6. targetRateLabel.setText(targetRateLabel.getText().replace("/" + oldUnitStr + ")", "/" + unitStr + ")"));
  7. rampUpLabel.setText(rampUpLabel.getText().replace("(" + oldUnitStr + ")", "(" + unitStr + ")"));
  8. holdLabel.setText(holdLabel.getText().replace("(" + oldUnitStr + ")", "(" + unitStr + ")"));
  9. }
  10. }

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

  1. @Override
  2. public void testStarted(String host) {
  3. log.debug("Start testStarted host = " + host);
  4. if(!isWorkingHost(host)) {
  5. return;
  6. }
  7. initCollector();
  8. super.testStarted(host);
  9. log.debug("End testStarted host = " + host);
  10. }

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

  1. /**
  2. * @return the filemask
  3. */
  4. public String getFilemask() {
  5. log.debug("Return filemask: " + getPropertyAsString(FILEMASK));
  6. return getPropertyAsString(FILEMASK);
  7. }

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

  1. public void loadFromTestElement(DistributedTestControl te) {
  2. CollectionProperty servers = te.getData();
  3. log.debug("Loading: " + servers.toString());
  4. clear();
  5. for (int n = 0; n < servers.size(); n++) {
  6. log.debug("Adding: " + servers.get(n).toString());
  7. add(servers.get(n).getStringValue());
  8. }
  9. }

相关文章