@Taxonomy(stability=EXPERIMENTAL) @AMXMBeanMetadata(singleton=true, globalSingleton=true, leaf=true) public interface Logging extends AMXProxy, LogQuery
LogRecordEmitter
LogFileAccess
LogQuery
LogQuery.Helper
ALL_RECORDS, FIRST_RECORD, LAST_RECORD, LOWEST_SUPPORTED_QUERY_LEVEL
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getLoggingAttributes()
Gets the configuration properties for logging
|
Map<String,String> |
getLoggingProperties()
Gets all the logging properties in the logging.properties file
|
String |
getModuleLogLevel(String moduleName)
Gets the log level of the Logger for the specified module, which may or may not
be the same as that found in the configuration.
|
void |
setModuleLogLevel(String moduleName,
String level)
Sets the log level of the Logger for the specified module.
|
void |
testEmitLogMessage(String level,
String message)
This method may be used to verify that your Logging listener is working
correctly.
|
void |
updateLoggingAttributes(Map<String,String> properties)
Sets the value of one or more of the logging configuration properties .
|
void |
updateLoggingProperties(Map<String,String> properties)
Sets the log level of the Logger for the specified module.
|
as, attributeNames, attributesMap, attributesMap, child, child, childrenMap, childrenMap, childrenMaps, childrenSet, extra, invokeOp, invokeOp, java, nameProp, objectName, parent, parentPath, path, type, valid
getChildren, getName, getParent
getDiagnosticCauses, getDiagnosticChecks, getDiagnosticURI, queryServerLog
@ManagedOperation(impact=1) @Description(value="Sets the log level of the Logger for the specified module") void setModuleLogLevel(@Param(name="moduleName") String moduleName, @Param(name="level") String level)
module
- a module name as specified in LogModuleNames
.level
- a log level@ManagedOperation(impact=0) @Description(value="Gets the log level of the Logger for the specified module") String getModuleLogLevel(@Param(name="moduleName") String moduleName)
moduleName
- a module name as specified in LogModuleNames
@ManagedOperation(impact=1) @Description(value="Sets the value of one or more logging properties") void updateLoggingProperties(@Param(name="properties") Map<String,String> properties)
@ManagedAttribute @Description(value="Gets all the logging properties") Map<String,String> getLoggingProperties()
@ManagedAttribute @Description(value="Get logging configuration properties") Map<String,String> getLoggingAttributes()
@ManagedOperation(impact=1) @Description(value="Set value of the value of one or more of the logging configuration properties.") void updateLoggingAttributes(@Param(name="properties") Map<String,String> properties)
@ManagedOperation(impact=0) void testEmitLogMessage(@Param(name="level") String level, @Param(name="message") String message)
level
- the log level of the log message.message
- the message to be placed in Notif.getMessage()Copyright © 2019. All rights reserved.