Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Powell2010-07-30 08:15:36 +0000
committerSteve Powell2010-07-30 08:15:36 +0000
commit9183394167f0018193ffa134c07382d4ba318fc7 (patch)
treecc8e95257f518e9da70f600f9ba1d4bf1ed3b66b /org.eclipse.virgo.medic.testfragment/src/main/java/org/eclipse/virgo/medic
parent50c4291e9505b7dac2ca562dd13f70fcabb3f2eb (diff)
downloadorg.eclipse.virgo.medic-9183394167f0018193ffa134c07382d4ba318fc7.tar.gz
org.eclipse.virgo.medic-9183394167f0018193ffa134c07382d4ba318fc7.tar.xz
org.eclipse.virgo.medic-9183394167f0018193ffa134c07382d4ba318fc7.zip
Change level of EntryExit traces to omit INFO level -- and update tests.
Diffstat (limited to 'org.eclipse.virgo.medic.testfragment/src/main/java/org/eclipse/virgo/medic')
-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