DEBUG_LEVEL, DEFAULT_LEVEL, ERROR_LEVEL, INFO_LEVEL, WARRNING_LEVEL
Constructor and Description |
---|
AbstractLogger() |
Modifier and Type | Method and Description |
---|---|
void |
addLoggerChangedListener(ILoggerChangedListener listener)
Add one more LoggerChangedListener to the HashSet with all
LoggerChangedListeners.
|
void |
debug(String msg)
This method logs a debug message into the logger.
|
void |
debug(String msg,
boolean conditon)
This method logs a debug message into the logger if the given condition
is true.
|
void |
error(String msg)
This method logs an error into the logger.
|
void |
error(String msg,
boolean conditon)
This method logs an error into the logger if the given condition is true.
|
protected void |
fireLogObjectAddedEvent(LogObject logObject)
Notifies the listener, that a LogObject was added to the logger.
|
void |
info(String msg)
This method logs an information into the logger.
|
void |
info(String msg,
boolean conditon)
This method logs an information into the logger if the given condition is
true.
|
void |
log(String msg)
This method logs a default message into the logger.
|
void |
log(String msg,
boolean conditon)
This method logs a default message into the logger if the given condition
is true.
|
void |
removeLoggerChangedListener(ILoggerChangedListener listener)
Remove a LoggerChangedListener from the HashSet with all
LoggerChangedListeners.
|
void |
setFile(File file)
Set a file for your logger.
|
void |
warning(String msg)
This method logs a warning into the logger.
|
void |
warning(String msg,
boolean conditon)
This method logs a warning into the logger if the given condition is
true.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLogs, log, setLogLevel
protected void fireLogObjectAddedEvent(LogObject logObject)
logObject
- the LogObject, that was added to the loggerpublic void addLoggerChangedListener(ILoggerChangedListener listener)
ILogger
addLoggerChangedListener
in interface ILogger
listener
- the listener, that should be addedpublic void log(String msg)
ILogger
public void log(String msg, boolean conditon)
ILogger
public void debug(String msg)
ILogger
public void debug(String msg, boolean conditon)
ILogger
public void warning(String msg)
ILogger
public void warning(String msg, boolean conditon)
ILogger
public void info(String msg)
ILogger
public void info(String msg, boolean conditon)
ILogger
public void error(String msg)
ILogger
public void error(String msg, boolean conditon)
ILogger
public void removeLoggerChangedListener(ILoggerChangedListener listener)
ILogger
removeLoggerChangedListener
in interface ILogger
listener
- the listener, that should be removed