* Add setter and getter for logLevel.

This commit is contained in:
hns 2006-01-13 13:20:54 +00:00
parent c744b0624f
commit 9cbe269390

View file

@ -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
*/