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, toString
checkPermission, getServerConfig, getServerContext, getStatisticManager
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 PermissionDefinition getPermissionDefinition()
PermissionControlled
PermissionControlled
object with a unique name
and provides a list of supported assignable permissions.getPermissionDefinition
in interface PermissionControlled
public LogLevel getLogLevel()
public LogChannel getMainLogChannel()
public LogChannel getChildLogChannel(java.lang.String chName) throws java.lang.Exception
java.lang.Exception
public 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()
Initializable
init
in interface Initializable
public void close()
close
in interface java.lang.AutoCloseable
Copyright © 2014 EsprIT-Systems. All Rights Reserved.