public class LogObject extends Object implements Serializable, LogSupporter
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
m_Debug
whether to run code in DEBUG mode
|
protected HashSet<LogListener> |
m_LogListeners
the listeners.
|
| Constructor and Description |
|---|
LogObject() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLogListener(LogListener l)
Adds the log listener to use.
|
void |
debug(String msg)
For debugging messages.
|
protected HashSet<LogListener> |
getLogListeners()
Returns the log listeners.
|
String |
handleException(String msg,
Throwable t)
Logs the stacktrace along with the message on stderr and returns a
combination of both of them as string.
|
void |
log(String msg)
For logging messages.
|
void |
removeLogListener(LogListener l)
Remove the log listener to use.
|
protected boolean m_Debug
protected transient HashSet<LogListener> m_LogListeners
protected HashSet<LogListener> getLogListeners()
public void addLogListener(LogListener l)
addLogListener in interface LogSupporterl - the listenerpublic void removeLogListener(LogListener l)
removeLogListener in interface LogSupporterl - the listenerpublic void log(String msg)
log in interface LogSupportermsg - the message to outputpublic void debug(String msg)
msg - the message to outputCopyright © 2017. All Rights Reserved.