Public Member Functions | |
| AcsLoggingHandler (DispatchingLogQueue logQueue, LogConfig logConfig, String loggerName, LogThrottle logThrottle) | |
| void | configureLogging (LogConfig logConfig) |
| void | publish (LogRecord logRecord) |
| void | flush () |
| void | close () |
Static Protected Member Functions | |
| static void | debug () |
The logging handler used by ACS for remote logging. All log records are immediately fed to a alma.acs.logging.DispatchingLogQueue.
| alma.acs.logging.AcsLoggingHandler.AcsLoggingHandler | ( | DispatchingLogQueue | logQueue, | |
| LogConfig | logConfig, | |||
| String | loggerName, | |||
| LogThrottle | logThrottle | |||
| ) |
| logQueue | ||
| logConfig | ||
| loggerName | ||
| logThrottle | may be null (then no throttling will happen) |
References alma.acs.logging.config.LogConfig.addSubscriber(), and alma.acs.logging.AcsLoggingHandler.configureLogging().
| void alma.acs.logging.AcsLoggingHandler.close | ( | ) |
Required method. Not sure if it's useful for us.
References alma.acs.logging.config.LogConfig.removeSubscriber().
| void alma.acs.logging.AcsLoggingHandler.configureLogging | ( | LogConfig | logConfig | ) |
Called whenever the logging configuration is updated, for example when the CDB is read.
Implements alma.acs.logging.config.LogConfigSubscriber.
References alma.acs.logging.config.LogConfig.getImmediateDispatchLevel(), alma.acs.logging.config.LogConfig.getNamedLoggerConfig(), and alma.acs.logging.AcsLoggingHandler.publish().
Referenced by alma.acs.logging.AcsLoggingHandler.AcsLoggingHandler().
| static void alma.acs.logging.AcsLoggingHandler.debug | ( | ) | [static, protected] |
Used in the test. Sets debug to true.
| void alma.acs.logging.AcsLoggingHandler.flush | ( | ) |
Forwards the flush request to the underlying queue.
References alma.acs.logging.DispatchingLogQueue.flush().
| void alma.acs.logging.AcsLoggingHandler.publish | ( | LogRecord | logRecord | ) |
| logRecord |
References alma.acs.logging.LogThrottle.checkPublishLogRecordRemote(), alma.acs.logging.DispatchingLogQueue.flush(), and alma.acs.logging.DispatchingLogQueue.log().
Referenced by alma.acs.logging.AcsLoggingHandler.configureLogging().
1.7.0