public class LogChannelManager extends AbstractInitializableServerObject<ServerContext> implements CloseableComponent, PermissionControlled
| Constructor and Description |
|---|
LogChannelManager(ServerContext serverCtx) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanupLogFiles() |
void |
close() |
LogChannel |
getChildLogChannel(java.lang.String chName)
Returns the LogChannel with the given name.
|
LogChannel |
getLogChannel(java.lang.String chName) |
LogChannel |
getLogChannelFor(SessionId sessId)
Same as
getChildLogChannel(String). |
LogLevel |
getLogLevel() |
LogChannel |
getMainLogChannel()
Returns the default LogChannel of the server.
|
PermissionDefinition |
getPermissionDefinition()
Returns an object that identifies a
PermissionControlled object with a unique name
and provides a list of supported assignable permissions. |
void |
init()
Performs the initialization of this class.
|
void |
logMessage(SessionId sessId,
LogLevel level,
java.lang.Object caller,
java.lang.String message,
java.lang.Exception e)
Logs a message to the client specific logChannel
|
void |
setLogLevel(LogLevel logLevel) |
void |
setMaxLinesLimit(int maxLines)
Sets the file-size-limit on all open LogChannels
|
checkInitialized, isInitialized, setInitialized, toStringcheckPermission, getServerConfig, getServerContext, getStatisticManagergetApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannelconfigureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toStringpublic LogChannelManager(ServerContext serverCtx) throws java.lang.Exception
java.lang.Exceptionpublic PermissionDefinition getPermissionDefinition()
PermissionControlledPermissionControlled object with a unique name
and provides a list of supported assignable permissions.getPermissionDefinition in interface PermissionControlledpublic LogLevel getLogLevel()
public LogChannel getMainLogChannel()
public LogChannel getChildLogChannel(java.lang.String chName) throws java.lang.Exception
java.lang.Exceptionpublic LogChannel getLogChannel(java.lang.String chName)
public LogChannel getLogChannelFor(SessionId sessId)
getChildLogChannel(String).
If the sessionId is null then the main LogChannel is returned.public void setLogLevel(LogLevel logLevel)
public void setMaxLinesLimit(int maxLines)
public void cleanupLogFiles()
public void logMessage(SessionId sessId, LogLevel level, java.lang.Object caller, java.lang.String message, java.lang.Exception e)
public void init()
Initializableinit in interface Initializablepublic void close()
close in interface java.lang.AutoCloseableCopyright © 2014 EsprIT-Systems. All Rights Reserved.