|
Tuscany Common | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tuscany.common.monitor.impl.JavaLoggingMonitorFactory
public class JavaLoggingMonitorFactory
A factory for monitors that forwards events to a Java Logging (JSR47) Logger
.
java.util.logging
Constructor Summary | |
---|---|
JavaLoggingMonitorFactory(java.util.Properties levels,
java.util.logging.Level defaultLevel,
java.lang.String bundleName)
Construct a MonitorFactory that will monitor the specified methods at the specified levels and generate messages using java.util.logging. |
Method Summary | ||
---|---|---|
|
getMonitor(java.lang.Class<T> monitorInterface)
Return a monitor for a component's monitor interface. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaLoggingMonitorFactory(java.util.Properties levels, java.util.logging.Level defaultLevel, java.lang.String bundleName)
Class.getName() + '#' + Method.getName()
and the value the log level to use
as defined by Level
.
levels
- definition of custom levels for specific monitored methodsdefaultLevel
- the default log level to usebundleName
- the name of a resource bundle that will be passed to the loggerLogger
Method Detail |
---|
public <T> T getMonitor(java.lang.Class<T> monitorInterface)
MonitorFactory
getMonitor
in interface MonitorFactory
monitorInterface
- the component's monitoring interface
|
Tuscany Common | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |