Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.virgo.medic.testfragment/src/main/java/org/eclipse/virgo/medic/log/EntryExitTrace.aj')
-rw-r--r--org.eclipse.virgo.medic.testfragment/src/main/java/org/eclipse/virgo/medic/log/EntryExitTrace.aj21
1 files changed, 2 insertions, 19 deletions
diff --git a/org.eclipse.virgo.medic.testfragment/src/main/java/org/eclipse/virgo/medic/log/EntryExitTrace.aj b/org.eclipse.virgo.medic.testfragment/src/main/java/org/eclipse/virgo/medic/log/EntryExitTrace.aj
index ed2b3aa..f8066ce 100644
--- a/org.eclipse.virgo.medic.testfragment/src/main/java/org/eclipse/virgo/medic/log/EntryExitTrace.aj
+++ b/org.eclipse.virgo.medic.testfragment/src/main/java/org/eclipse/virgo/medic/log/EntryExitTrace.aj
@@ -31,27 +31,10 @@ public aspect EntryExitTrace pertypewithin(*) {
pointcut logback() : within(ch.qos.logback..*) || within(org.slf4j.impl..*);
- pointcut infoCandidate() : execution(public * *(..)) && !medic() && !logback();
+ pointcut debugCandidate() : execution(public * *(..)) && !medic() && !logback();
- pointcut debugCandidate() : execution(!public !private * *(..)) && !medic() && !logback();
+ pointcut traceCandidate() : execution(!public * *(..)) && !medic() && !logback();
- pointcut traceCandidate() : execution(private * *(..)) && !medic() && !logback();
-
- before() : infoCandidate() {
- getLogger(thisJoinPointStaticPart).info("{} {}", ">", getSignature(thisJoinPointStaticPart));
- }
-
- after() returning : infoCandidate() {
- getLogger(thisJoinPointStaticPart).info("{} {}", "<", getSignature(thisJoinPointStaticPart));
- }
-
- after() throwing(Throwable t) : infoCandidate() {
- Logger logger = getLogger(thisJoinPointStaticPart);
- if (logger.isInfoEnabled()) {
- logger.info(String.format("< %s", getSignature(thisJoinPointStaticPart)), t);
- }
- }
-
before() : debugCandidate() {
getLogger(thisJoinPointStaticPart).debug("{} {}", ">", getSignature(thisJoinPointStaticPart));
}

Back to the top