summaryrefslogtreecommitdiffstats
path: root/tests/bugs/messyAround/DebugTrace.aj
blob: 7e8c554322df84cc3f1687721d692c50e30153dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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);        
    }  
    
}