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, waitgetLogs, log, setLogLevelprotected void fireLogObjectAddedEvent(LogObject logObject)
logObject - the LogObject, that was added to the loggerpublic void addLoggerChangedListener(ILoggerChangedListener listener)
ILoggeraddLoggerChangedListener in interface ILoggerlistener - the listener, that should be addedpublic void log(String msg)
ILoggerpublic void log(String msg, boolean conditon)
ILoggerpublic void debug(String msg)
ILoggerpublic void debug(String msg, boolean conditon)
ILoggerpublic void warning(String msg)
ILoggerpublic void warning(String msg, boolean conditon)
ILoggerpublic void info(String msg)
ILoggerpublic void info(String msg, boolean conditon)
ILoggerpublic void error(String msg)
ILoggerpublic void error(String msg, boolean conditon)
ILoggerpublic void removeLoggerChangedListener(ILoggerChangedListener listener)
ILoggerremoveLoggerChangedListener in interface ILoggerlistener - the listener, that should be removed