Public Member Functions | |
| StdOutConsoleHandler (LogConfig logConfig, String loggerName, LogThrottle logThrottle) | |
| void | configureLogging (LogConfig newLogConfig) |
| synchronized void | publish (LogRecord record) |
| void | close () |
Copied over from ConsoleHandler, but using System.out instead of System.err.
Note that we can't inherit from ConsoleHandler and reset the output stream using setOutputStream(System.out), because this would yield a call to System.err.close().
| alma.acs.logging.StdOutConsoleHandler.StdOutConsoleHandler | ( | LogConfig | logConfig, | |
| String | loggerName, | |||
| LogThrottle | logThrottle | |||
| ) |
| logConfig | to get configuration data from, and subscribe for future updates | |
| loggerName | ||
| logThrottle | optional log throttle, may be null if not used. |
References alma.acs.logging.config.LogConfig.addSubscriber(), and alma.acs.logging.StdOutConsoleHandler.configureLogging().
| void alma.acs.logging.StdOutConsoleHandler.close | ( | ) |
Override StreamHandler.close to do a flush but not to close the output stream. That is, we do not close System.err.
References alma.acs.logging.config.LogConfig.removeSubscriber().
| void alma.acs.logging.StdOutConsoleHandler.configureLogging | ( | LogConfig | newLogConfig | ) |
Implements alma.acs.logging.config.LogConfigSubscriber.
References alma.acs.logging.config.LogConfig.getNamedLoggerConfig(), and alma.acs.logging.StdOutConsoleHandler.publish().
Referenced by alma.acs.logging.StdOutConsoleHandler.StdOutConsoleHandler().
| synchronized void alma.acs.logging.StdOutConsoleHandler.publish | ( | LogRecord | record | ) |
Publish a LogRecord.
The logging request was made initially to a Logger object, which initialized the LogRecord and forwarded it here.
| record | description of the log event. A null record is silently ignored and is not published |
References alma.acs.logging.LogThrottle.checkPublishLogRecordLocal().
Referenced by alma.acs.logging.StdOutConsoleHandler.configureLogging().
1.7.0