summaryrefslogtreecommitdiffstats
path: root/weaver5/java5-src/org
diff options
context:
space:
mode:
authormwebster <mwebster>2006-08-09 15:53:53 +0000
committermwebster <mwebster>2006-08-09 15:53:53 +0000
commit7a0f7a45b24c8dc9c63141edcb57f80f4a358f63 (patch)
tree0d9888f646dc8779f581da46a5c47893633ee3db /weaver5/java5-src/org
parente42bdf150dc7dda76eacf36cdb8d7ea1baa75a9e (diff)
downloadaspectj-7a0f7a45b24c8dc9c63141edcb57f80f4a358f63.tar.gz
aspectj-7a0f7a45b24c8dc9c63141edcb57f80f4a358f63.zip
Bug 150487 "Tracing and Logging Framework" (support debug, info, warn, error and fatal)
Diffstat (limited to 'weaver5/java5-src/org')
-rw-r--r--weaver5/java5-src/org/aspectj/weaver/tools/Jdk14Trace.java30
1 files changed, 30 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 7847e6127..ffb49939e 100644
--- a/weaver5/java5-src/org/aspectj/weaver/tools/Jdk14Trace.java
+++ b/weaver5/java5-src/org/aspectj/weaver/tools/Jdk14Trace.java
@@ -77,5 +77,35 @@ public class Jdk14Trace extends AbstractTrace {
logger.setLevel(Level.INFO);
}
}
+
+ public void debug (String message) {
+ if (logger.isLoggable(Level.FINE)) {
+ logger.fine(message);
+ }
+ }
+
+ public void info(String message) {
+ if (logger.isLoggable(Level.INFO)) {
+ logger.info(message);
+ }
+ }
+
+ public void warn (String message, Throwable th) {
+ if (logger.isLoggable(Level.WARNING)) {
+ logger.log(Level.WARNING,message,th);
+ }
+ }
+
+ public void error (String message, Throwable th) {
+ if (logger.isLoggable(Level.SEVERE)) {
+ logger.log(Level.SEVERE,message,th);
+ }
+ }
+
+ public void fatal (String message, Throwable th) {
+ if (logger.isLoggable(Level.SEVERE)) {
+ logger.log(Level.SEVERE,message,th);
+ }
+ }
}