|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jagatoo.logging.LogManager
public class LogManager
This object manages multiple logs. This provides a single point at which the application can write to logs, but allows log control to be handled centrally. Multiple LogInterface objects are registered with the logger. The LogManager will step through them when a logging message comes in and give each LogInterface an opportunity to consume the log message.
| Method Summary | |
|---|---|
void |
addDebuggingPackage(java.lang.String pkg)
|
boolean |
areChannelsVisible()
|
void |
deregisterLog(LogInterface log)
This method allows you to deregister a class that implements the LogInterface. |
java.util.HashSet<java.lang.String> |
getDebuggingPackageFiler()
|
int |
getIndentation()
|
java.lang.String |
getIndentationString()
|
static LogManager |
getInstance()
|
boolean |
isAnyLogInterfaceRegistered(LogChannel channel,
int logLevel)
|
boolean |
isTimestampingEnabled()
|
void |
refreshLogInterfaces()
Must be called, if the logLevel of a registeredLogInterface has been changed. |
void |
registerLog(LogInterface log)
This method allows you to register a class that implements the LogInterface. |
void |
removeDebuggingPackage(java.lang.String pkg)
|
void |
setChannelsVisible(boolean visible)
|
void |
setIndentation(int indentation)
Sets the indentation level to use for the following log outputs. |
void |
setIndentationString(java.lang.String indentationString)
Sets the String to be prefixed to the actualy logging output n times. |
void |
setTimestampingEnabled(boolean enabled)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public final void setIndentationString(java.lang.String indentationString)
indentationString - public final java.lang.String getIndentationString()
public final void setIndentation(int indentation)
indentation - public final int getIndentation()
public final void setTimestampingEnabled(boolean enabled)
public final boolean isTimestampingEnabled()
public final void setChannelsVisible(boolean visible)
public final boolean areChannelsVisible()
public final void addDebuggingPackage(java.lang.String pkg)
public final void removeDebuggingPackage(java.lang.String pkg)
public final java.util.HashSet<java.lang.String> getDebuggingPackageFiler()
public final void refreshLogInterfaces()
public final void registerLog(LogInterface log)
public final void deregisterLog(LogInterface log)
public final boolean isAnyLogInterfaceRegistered(LogChannel channel,
int logLevel)
public static final LogManager getInstance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||