* Add setter and getter for logLevel.
This commit is contained in:
parent
c744b0624f
commit
9cbe269390
1 changed files with 17 additions and 2 deletions
|
@ -50,7 +50,6 @@ public class Logger implements Log {
|
||||||
|
|
||||||
int logLevel = INFO;
|
int logLevel = INFO;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* zero argument constructor, only here for FileLogger subclass
|
* zero argument constructor, only here for FileLogger subclass
|
||||||
*/
|
*/
|
||||||
|
@ -90,6 +89,22 @@ public class Logger implements Log {
|
||||||
logLevel = FATAL;
|
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
|
* Return a string representation of this Logger
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue