public class AcsLoggingHandler extends java.util.logging.Handler implements LogConfigSubscriber
DispatchingLogQueue.| Constructor and Description |
|---|
AcsLoggingHandler(DispatchingLogQueue logQueue,
LogConfig logConfig,
java.lang.String loggerName,
alma.acs.logging.LogThrottle logThrottle) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Required method.
|
void |
configureLogging(LogConfig logConfig)
Called whenever the logging configuration is updated, for example when the CDB is read.
|
protected static void |
debug()
Used in the test.
|
void |
flush()
Forwards the flush request to the underlying queue.
|
void |
publish(java.util.logging.LogRecord logRecord) |
public AcsLoggingHandler(DispatchingLogQueue logQueue, LogConfig logConfig, java.lang.String loggerName, alma.acs.logging.LogThrottle logThrottle)
logQueue - logConfig - loggerName - logThrottle - may be null (then no throttling will happen)public void configureLogging(LogConfig logConfig)
configureLogging in interface LogConfigSubscriberLogConfigSubscriber.configureLogging(alma.acs.logging.config.LogConfig)public void publish(java.util.logging.LogRecord logRecord)
publish in class java.util.logging.HandlerlogRecord - Writes a single log into an array of strings.public void flush()
flush in class java.util.logging.HandlerHandler.flush()public void close()
close in class java.util.logging.HandlerCleans handler up before exiting.protected static void debug()