* 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

@ -50,7 +50,6 @@ public class Logger implements Log {
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
*/