Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » how to catch debug joint points?
how to catch debug joint points? [message #587002] Fri, 25 February 2005 06:48
Eclipse UserFriend
Originally posted by: snpooo.gmail.com

I am planning to implement logging aspect with AspectJ, but i don't know
how to log debug info using AspecJ?


I can log debug info at any interested place in oop system.

For example:

public class ClassA {
...
public void MethodA(int a){
...
if(debugEnabled)
log.debug("debug info, a= "+ a);
}
}
...

}

In aop system, how can I get the same function as above?

If I add a String field member and assign it the debug info at where debug
info need to be logged, then i use apsect to catch this field write
joinpoint and log debug info.

e.g.

public class ClassA {
...
public void MethodA(int a){
...
String debugstring="debug info, a= "+ a;
}
}
...

}

is this method feasible? any other idea?
Thanks a lot!

Best regards
Previous Topic:Eclipse AspectJ Book Exampel Update Error
Next Topic:Eclipse 3.1M5 and status of AJDT 1.2.0M3
Goto Forum:
  


Current Time: Thu Apr 25 15:47:05 GMT 2024

Powered by FUDForum. Page generated in 0.02926 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top