

Public Member Functions | |
| StdOutConsoleHandler (LogConfig logConfig, String loggerName) | |
| void | configureLogging (LogConfig newLogConfig) |
| void | publish (LogRecord record) |
| void | close () |
Private Attributes | |
| LogConfig | logConfig |
| String | loggerName |
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 | |||
| ) | [inline] |
References alma::acs::logging::config::LogConfig::addSubscriber(), and configureLogging().
| void alma::acs::logging::StdOutConsoleHandler::close | ( | ) | [inline] |
Override StreamHandler.close to do a flush but not to close the output stream. That is, we do not close System.err.
References logConfig, and alma::acs::logging::config::LogConfig::removeSubscriber().
| void alma::acs::logging::StdOutConsoleHandler::configureLogging | ( | LogConfig | newLogConfig | ) | [inline] |
Implements alma::acs::logging::config::LogConfigSubscriber.
References alma::acs::logging::config::LogConfig::getNamedLoggerConfig(), logConfig, loggerName, and publish().
Referenced by StdOutConsoleHandler().
| void alma::acs::logging::StdOutConsoleHandler::publish | ( | LogRecord | record | ) | [inline] |
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 |
Referenced by configureLogging().
Referenced by close(), and configureLogging().
String alma::acs::logging::StdOutConsoleHandler::loggerName [private] |
Referenced by configureLogging().
1.6.2