Package wt.method.jmx
Interface FilteredMCLoggerMBean
- All Superinterfaces:
SelfEmailingMBean
- All Known Implementing Classes:
FilteredMCLogger
Allows selective logging of method contexts that match specific criteria.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionRegular expression which method context access log detail must match in order to be logged; when this is null/empty no target method filter will be applied
Supported API: trueLogging level; valid values are ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF (or blank/unspecified)
Supported API: trueName of logger this MBean uses
Supported API: truegetName()Name of this MBean
Supported API: trueRegular expression which method context target class must match in order to be logged; when this is null/empty no target class filter will be applied
Supported API: trueRegular expression which method context target method must match in order to be logged; when this is null/empty no target method filter will be applied
Supported API: trueUser names for which requests should be logged; when this is null/empty, no user name filter is applied
Supported API: truebooleanWhether this MBean is enabled; when disabled this MBean will not log, irrespective of the LoggerLevel setting
Supported API: truebooleanWhether method context data should be logged as a wt.method.MethodContextMBean or instead formatted as specified by the MethodContextMonitor MBean's ContextLogger* attributes (and thus as an AttributeListWrapper).voidsetAccessLogDetailPatternToLog(String accessLogDetailPatternToLog) Regular expression which method context access log detail must match in order to be logged; when this is null/empty no target method filter will be applied
Supported API: truevoidsetEnabled(boolean enabled) Whether this MBean is enabled; when disabled this MBean will not log, irrespective of the LoggerLevel setting
Supported API: truevoidsetLogAsDynamicMBean(boolean logAsDynamicMBean) Whether method context data should be logged as a wt.method.MethodContextMBean or instead formatted as specified by the MethodContextMonitor MBean's ContextLogger* attributes (and thus as an AttributeListWrapper).voidsetLoggerLevel(String level) Logging level; valid values are ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF (or blank/unspecified)
Supported API: truevoidsetTargetClassPatternToLog(String targetClassPatternToLog) Regular expression which method context target class must match in order to be logged; when this is null/empty no target class filter will be applied
Supported API: truevoidsetTargetMethodPatternToLog(String targetMethodPatternToLog) Regular expression which method context target method must match in order to be logged; when this is null/empty no target method filter will be applied
Supported API: truevoidsetUserNamesToLog(String userNames) User names for which requests should be logged; when this is null/empty, no user name filter is applied
Supported API: trueMethods inherited from interface wt.jmx.core.mbeans.SelfEmailingMBean
emailThisMBean
-
Method Details
-
getName
String getName()Name of this MBean
Supported API: true -
isEnabled
boolean isEnabled()Whether this MBean is enabled; when disabled this MBean will not log, irrespective of the LoggerLevel setting
Supported API: true -
setEnabled
void setEnabled(boolean enabled) Whether this MBean is enabled; when disabled this MBean will not log, irrespective of the LoggerLevel setting
Supported API: true -
getLoggerName
String getLoggerName()Name of logger this MBean uses
Supported API: true -
getLoggerLevel
String getLoggerLevel()Logging level; valid values are ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF (or blank/unspecified)
Supported API: true -
setLoggerLevel
Logging level; valid values are ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF (or blank/unspecified)
Supported API: true -
getUserNamesToLog
String getUserNamesToLog()User names for which requests should be logged; when this is null/empty, no user name filter is applied
Supported API: true -
setUserNamesToLog
User names for which requests should be logged; when this is null/empty, no user name filter is applied
Supported API: true -
getTargetClassPatternToLog
String getTargetClassPatternToLog()Regular expression which method context target class must match in order to be logged; when this is null/empty no target class filter will be applied
Supported API: true -
setTargetClassPatternToLog
Regular expression which method context target class must match in order to be logged; when this is null/empty no target class filter will be applied
Supported API: true -
getTargetMethodPatternToLog
String getTargetMethodPatternToLog()Regular expression which method context target method must match in order to be logged; when this is null/empty no target method filter will be applied
Supported API: true -
setTargetMethodPatternToLog
Regular expression which method context target method must match in order to be logged; when this is null/empty no target method filter will be applied
Supported API: true -
getAccessLogDetailPatternToLog
String getAccessLogDetailPatternToLog()Regular expression which method context access log detail must match in order to be logged; when this is null/empty no target method filter will be applied
Supported API: true -
setAccessLogDetailPatternToLog
Regular expression which method context access log detail must match in order to be logged; when this is null/empty no target method filter will be applied
Supported API: true -
isLogAsDynamicMBean
boolean isLogAsDynamicMBean()Whether method context data should be logged as a wt.method.MethodContextMBean or instead formatted as specified by the MethodContextMonitor MBean's ContextLogger* attributes (and thus as an AttributeListWrapper). Normally the latter approach is useful in order to allow selection of method context data to log and formatting thereof, but in cases one might wish to log as a MethodContextMBean in order to allow a log4j Appender like wt.log4j.jmx.AsyncJDBCAppender to independently select the data of interest.
Supported API: true -
setLogAsDynamicMBean
void setLogAsDynamicMBean(boolean logAsDynamicMBean) Whether method context data should be logged as a wt.method.MethodContextMBean or instead formatted as specified by the MethodContextMonitor MBean's ContextLogger* attributes (and thus as an AttributeListWrapper). Normally the latter approach is useful in order to allow selection of method context data to log and formatting thereof, but in cases one might wish to log as a MethodContextMBean in order to allow a log4j Appender like wt.log4j.jmx.AsyncJDBCAppender to independently select the data of interest.
Supported API: true
-