public class DebugStore extends Object
| Constructor and Description |
|---|
DebugStore(int pMaxDebugEntries,
boolean pDebug)
Create the debug store for holding debug messages
|
| Modifier and Type | Method and Description |
|---|---|
String |
debugInfo()
Get back all previously logged and stored debug messages
|
int |
getMaxDebugEntries()
Get the number of max debugging entries which can be stored
|
boolean |
isDebug()
Return
true when debugging is switched on |
void |
log(String pMessage)
Store the given message in this store if debug is switched on
|
void |
log(String pMessage,
Throwable pThrowable)
Store the given message in this store if debug is switched on
|
void |
resetDebugInfo()
Reset debug info
|
void |
setDebug(boolean pSwitch)
Switch on/off debug
|
void |
setMaxDebugEntries(int pNumber)
Set the number of maximum debuggin entries and trim the list of
debug entries
|
public DebugStore(int pMaxDebugEntries,
boolean pDebug)
pMaxDebugEntries - how many messages to keeppDebug - whether debug is switched onpublic void log(String pMessage)
pMessage - message to storepublic void log(String pMessage, Throwable pThrowable)
pMessage - message to storepThrowable - exception to storepublic String debugInfo()
public void resetDebugInfo()
public void setDebug(boolean pSwitch)
pSwitch - if true switch on debugpublic boolean isDebug()
true when debugging is switched onpublic int getMaxDebugEntries()
public void setMaxDebugEntries(int pNumber)
pNumber - the maximal number of debug entriesCopyright © 2017. All rights reserved.