diff options
Diffstat (limited to 'tests/bugs/messyAround/DebugTrace.aj')
-rw-r--r-- | tests/bugs/messyAround/DebugTrace.aj | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/bugs/messyAround/DebugTrace.aj b/tests/bugs/messyAround/DebugTrace.aj new file mode 100644 index 000000000..7e8c55432 --- /dev/null +++ b/tests/bugs/messyAround/DebugTrace.aj @@ -0,0 +1,34 @@ +import aspects.*;
+//import org.apache.log4j.*;
+//import com.checkfree.common.util.*;
+import java.lang.reflect.*;
+import java.util.*;
+import org.aspectj.lang.reflect.*;
+/**
+* This concrete trace aspect specifies what we should trace.
+ */
+
+privileged aspect DebugTrace extends Trace
+
+{
+ declare precedence: DebugTrace, *;
+
+ //private static Logger _log = null;
+
+ static
+ {
+ //String log4jPath = GlobalPaths.getPath("properties_dir")+"log4j.properties";
+ //PropertyConfigurator.configure(log4jPath);
+ //_log = Logger.getLogger(TestLog.class);
+ }
+
+ /** define the pointcut for what we trace */
+ protected pointcut lexicalScope() :within(cap.OptionList);
+
+ protected void log(String data)
+ {
+ System.err.println("data: " + data);
+ //_log.debug(data);
+ }
+
+}
|