[jboss-svn-commits] JBL Code SVN: r29479 - labs/jbosstm/workspace/adinn/byteman/trunk/src/org/jboss/byteman/rule/helper.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Sep 28 03:55:19 EDT 2009
Author: adinn
Date: 2009-09-28 03:55:18 -0400 (Mon, 28 Sep 2009)
New Revision: 29479
Modified:
labs/jbosstm/workspace/adinn/byteman/trunk/src/org/jboss/byteman/rule/helper/Helper.java
Log:
added convenience methods trace(String) and traceln(String) which write a trace message to standard output -- fixes BYTEMAN-42
Modified: labs/jbosstm/workspace/adinn/byteman/trunk/src/org/jboss/byteman/rule/helper/Helper.java
===================================================================
--- labs/jbosstm/workspace/adinn/byteman/trunk/src/org/jboss/byteman/rule/helper/Helper.java 2009-09-28 07:13:28 UTC (rev 29478)
+++ labs/jbosstm/workspace/adinn/byteman/trunk/src/org/jboss/byteman/rule/helper/Helper.java 2009-09-28 07:55:18 UTC (rev 29479)
@@ -164,6 +164,16 @@
}
/**
+ * call trace("out, message").
+ * @param message
+ * @return true
+ */
+ public boolean trace(String message)
+ {
+ return trace("out", message);
+ }
+
+ /**
* write the supplied message to the trace stream identified by identifier, creating a new stream
* if none exists
* @param identifier an identifier used subsequently to identify the trace output stream
@@ -190,6 +200,16 @@
}
/**
+ * call traceln("out", message).
+ * @param message
+ * @return true
+ */
+ public boolean traceln(String message)
+ {
+ return traceln("out", message);
+ }
+
+ /**
* write the supplied message to the trace stream identified by identifier, creating a new stream
* if none exists, and append a new line
* @param identifier an identifier used subsequently to identify the trace output stream
More information about the jboss-svn-commits
mailing list