public class TLcdMBeanPerformanceLogHandler extends Handler
A log Handler that expects LogRecords containing timing information in the form of MBean components. The components are registered automatically with the default platform MBean server.
Performance logging can be enabled with a logging properties file (see Developer's guide) or programmatically:
Logger perfLogger = Logger.getLogger( "performance.com.luciad" );
perfLogger.addHandler( new TLcdMBeanPerformanceLogHandler() );
perfLogger.setUseParentHandlers( false );
perfLogger.setLevel( Level.FINEST );
Constructor and Description |
---|
TLcdMBeanPerformanceLogHandler()
Constructs a TLcdMBeanPerformanceLogHandler.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
void |
publish(LogRecord aLogRecord)
Registers new MBeans with the server, or sends notifications for the ones
already registered.
|
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
public TLcdMBeanPerformanceLogHandler()
public void publish(LogRecord aLogRecord)
public void close() throws SecurityException
close
in class Handler
SecurityException