From 9cbe2693904be71a85f82056121ed85d46e7a7a0 Mon Sep 17 00:00:00 2001 From: hns Date: Fri, 13 Jan 2006 13:20:54 +0000 Subject: [PATCH] * Add setter and getter for logLevel. --- src/helma/util/Logger.java | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/helma/util/Logger.java b/src/helma/util/Logger.java index ae78a0f6..28224029 100644 --- a/src/helma/util/Logger.java +++ b/src/helma/util/Logger.java @@ -48,8 +48,7 @@ public class Logger implements Log { public final static int ERROR = 5; public final static int FATAL = 6; - int logLevel = INFO; - + int logLevel = INFO; /** * zero argument constructor, only here for FileLogger subclass @@ -90,6 +89,22 @@ public class Logger implements Log { logLevel = FATAL; } + /** + * Get the current log level. + * @return the current log level + */ + public int getLogLevel() { + return logLevel; + } + + /** + * Set the log level for this logger. + * @param logLevel the new log level + */ + public void setLogLevel(int logLevel) { + this.logLevel = logLevel; + } + /** * Return a string representation of this Logger */