Interface LogManagerMXBean
public interface LogManagerMXBean
Interface for changing the log level on the local node.
An MBean with name ECE Logging:type=Configuration will be registered on each node to manage the node's logging levels.
Note that this MBean does not allow cluster-wide logging management, which is not supported at runtime by ECE. Cluster-wide logging management can only be configured offline via the config/log4j2.xml. This file must be synchronized (using the 'sync' ECC command) across all the ECE nodes in order for the settings to be in effect when the cluster is started or restarted.
-
Method Summary
Modifier and TypeMethodDescriptionGet all the functional domainsGet all loggers' level on this nodevoid
setGridLogLevel
(String loggerName, String levelString) Set the log level in all nodes in Grid.void
setGridLogLevelForFunctionalDomain
(String functionalDomain, String levelString) Set the log level for a specific functional domain in all nodes of Grid.void
setLogLevel
(String loggerName, String levelString) Set the log level in local nodevoid
setLogLevelForFunctionalDomain
(String functionalDomain, String levelString) Set the log level for a specific functional domain in local nodevoid
Update subscriber trace configuration from configuration file
-
Method Details
-
setGridLogLevel
Set the log level in all nodes in Grid.- Parameters:
loggerName
- logger namelevelString
- log level as string. seeLevel
-
setGridLogLevelForFunctionalDomain
Set the log level for a specific functional domain in all nodes of Grid.- Parameters:
functionalDomain
- the domain for which log level should be setlevelString
- log level as string. seeLevel
-
setLogLevel
Set the log level in local node- Parameters:
loggerName
- logger namelevelString
- log level as string. seeLevel
-
setLogLevelForFunctionalDomain
Set the log level for a specific functional domain in local node- Parameters:
functionalDomain
- the domain for which log level should be setlevelString
- log level as string. seeLevel
-
getLoggerLevels
Get all loggers' level on this node- Returns:
- map of key-value associating log name with its log level
-
getFunctionalDomains
Get all the functional domains- Returns:
- set of the functional domains
-
updateSubscriberTraceConfiguration
void updateSubscriberTraceConfiguration()Update subscriber trace configuration from configuration file
-