|
||||||||||
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(LogHandler 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 |
print(LogChannel channel,
int logLevel,
java.lang.Object[] message)
This method will call all the log objects to store the message, if they want to. |
void |
printCS(LogChannel channel,
int logLevel,
java.lang.Object[] message)
This method will call all the log objects to store the message, if they want to. |
void |
println(LogChannel channel,
int logLevel,
java.lang.Object[] message)
This method will call all the log objects to store the message, if they want to. |
void |
printlnCS(LogChannel channel,
int logLevel,
java.lang.Object[] message)
This method will call all the log objects to store the message, if they want to. |
void |
refreshLogInterfaces()
Must be called, if the logLevel of a registeredLogInterface has been changed. |
void |
registerLog(LogHandler 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(LogHandler log)
log
- public final void deregisterLog(LogHandler log)
log
- public final boolean isAnyLogInterfaceRegistered(LogChannel channel, int logLevel)
public final void print(LogChannel channel, int logLevel, java.lang.Object[] message)
channel
- logLevel
- the logLevel of this messagemessage
- the string message to be printed to the logpublic final void printCS(LogChannel channel, int logLevel, java.lang.Object[] message)
channel
- logLevel
- the logLevel of this messagemessage
- the string message to be printed to the log (comma separated)public final void println(LogChannel channel, int logLevel, java.lang.Object[] message)
channel
- logLevel
- the logLevel of this messagemessage
- the string message to be printed to the logpublic final void printlnCS(LogChannel channel, int logLevel, java.lang.Object[] message)
channel
- logLevel
- the logLevel of this messagemessage
- the string message to be printed to the log (comma separated)public static final LogManager getInstance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |