[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] Good Techniques of Tracing

Is your log enabled? How are you weaving into the application?


From: aspectj-users-bounces@xxxxxxxxxxx [mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of ramilani12
Sent: Wednesday, July 11, 2007 5:00 PM
To: aspectj-users@xxxxxxxxxxx
Subject: [aspectj-users] Good Techniques of Tracing


Hello Guys

I have problem with pointcut
I try to capture any method this Class: ArquivoTcs

I try this:

pointcut traceMethods1():  execution(* ArquivoTcs.*(..) ) || call(* ArquivoTcs.*(..))
    && !within(TraceAspect);

before(): traceMethods1()
        if ( log.isEnabledFor(Level.INFO) )
            Signature sig = thisJoinPointStaticPart

            log.log(Level.INFO , "Entering [ "+sig.getDeclaringType().getName()+" . "+sig.getName()+"]");

But failed ,  nothing captured I don´t understand this problem because I specify this any execution or call method Class ArquivoTcs

How could captured  any execution or call method this class ArquivoTcs?


raphael milani