public class LogChannelManager extends AbstractServerObject<ServerContext>
Constructor and Description |
---|
LogChannelManager(ServerContext serverCtx) |
Modifier and Type | Method and Description |
---|---|
void |
cleanupLogFiles() |
void |
close()
Closes all LogChannels of the server.
|
ServerLogChannel |
getDefaultLogChannel()
Returns the default LogChannel of the server.
|
ServerLogChannel |
getLogChannel(SessionId sessId)
Same as
getLogChannel(String) . |
ServerLogChannel |
getLogChannel(java.lang.String chName)
Returns the LogChannel with the given name.
|
java.lang.String[] |
getLogChannelNames()
Returns the names of all cached LogChannels
|
LogLevel |
getLogLevel() |
int |
getSize()
Returns the number of cached LogChannels (not including the default LogChannel)
|
void |
logMessage(SessionId sessId,
LogLevel level,
java.lang.Object caller,
java.lang.String message,
java.lang.Exception e) |
void |
logMessage(SessionId sessId,
LogLevel level,
java.lang.Object caller,
java.lang.String message,
java.lang.Exception e,
boolean doAllowSend)
Logs a message to the client specific logChannel
|
boolean |
remove(java.lang.String chName)
Removes the named cached LogChannel
|
void |
reset()
Closes and removes all client related LogChannels
|
void |
setFileSizeLimit(int maxLines)
Sets the file-size-limit on all open LogChannels
|
void |
setLogLevel(LogLevel logLevel) |
void |
startFileLogging()
Actually starts logging on the default LogChannel
|
void |
startSendingLogMessages() |
getServerConfig, getServerContext, getServerParams, getServerStartup, getStatisticManager, toString
getApplicationConfig, getApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toString
public LogChannelManager(ServerContext serverCtx) throws java.lang.Exception
java.lang.Exception
public LogLevel getLogLevel()
public void setLogLevel(LogLevel logLevel)
public ServerLogChannel getDefaultLogChannel()
public ServerLogChannel getLogChannel(java.lang.String chName)
public ServerLogChannel getLogChannel(SessionId sessId)
getLogChannel(String)
.
If the sessionId is null then the default logchannel is returned.public boolean remove(java.lang.String chName)
public java.lang.String[] getLogChannelNames()
public void close()
public int getSize()
public void startFileLogging() throws java.lang.Exception
java.lang.Exception
public void setFileSizeLimit(int maxLines)
public void reset()
public void cleanupLogFiles()
public void logMessage(SessionId sessId, LogLevel level, java.lang.Object caller, java.lang.String message, java.lang.Exception e, boolean doAllowSend)
public void startSendingLogMessages()
Copyright © 2012 EsprIT-Systems. All Rights Reserved.