aboutsummaryrefslogtreecommitdiffstats
path: root/weaver5
diff options
context:
space:
mode:
authormwebster <mwebster>2006-08-25 11:31:30 +0000
committermwebster <mwebster>2006-08-25 11:31:30 +0000
commit5787d0e82f32648f30f4677c13aef68d4615e300 (patch)
tree1bf6a9847346ccba76aa09cb913ebf267e1e4d2a /weaver5
parent91c20abd138e0cf548e1cebc90fabad3586abc09 (diff)
downloadaspectj-5787d0e82f32648f30f4677c13aef68d4615e300.tar.gz
aspectj-5787d0e82f32648f30f4677c13aef68d4615e300.zip
Bug 150487 "Tracing and Logging Framework" (Trace.event())
Diffstat (limited to 'weaver5')
-rw-r--r--weaver5/java5-src/org/aspectj/weaver/tools/Jdk14Trace.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/weaver5/java5-src/org/aspectj/weaver/tools/Jdk14Trace.java b/weaver5/java5-src/org/aspectj/weaver/tools/Jdk14Trace.java
index ffb49939e..28c46d4ea 100644
--- a/weaver5/java5-src/org/aspectj/weaver/tools/Jdk14Trace.java
+++ b/weaver5/java5-src/org/aspectj/weaver/tools/Jdk14Trace.java
@@ -56,6 +56,21 @@ public class Jdk14Trace extends AbstractTrace {
}
}
+ public void event(String methodName, Object thiz, Object[] args) {
+ if (logger.isLoggable(Level.FINE)) {
+ logger.logp(Level.FINER,name,methodName,"EVENT",formatObj(thiz));
+ if (args != null && logger.isLoggable(Level.FINER)) {
+ logger.logp(Level.FINER,name,methodName,"EVENT",args);
+ }
+ }
+ }
+
+ public void event(String methodName) {
+ if (logger.isLoggable(Level.FINE)) {
+ logger.logp(Level.FINER,name,methodName,"EVENT");
+ }
+ }
+
public boolean isTraceEnabled() {
return logger.isLoggable(Level.FINER);
}