alma::acs::logging::adapters::JacORBFilter Class Reference

Inheritance diagram for alma::acs::logging::adapters::JacORBFilter:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::logging::adapters::JacORBFilter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

boolean isLoggable (LogRecord record)
void setLogLevel (Level level)

Protected Attributes

int logLevel = Level.ALL.intValue()

Detailed Description

Filters out JacORB log messages that we don't want to see. Also corrects the log level of a few known messages when it seems inappropriate (and blanks non-printable chars in the message); this is a bit dirty because the JDK logging filters are not expected to modify the log records, but it saves us from re-examining the same log record in a subsequent home-brew modifier stage.


Member Function Documentation

boolean alma::acs::logging::adapters::JacORBFilter::isLoggable ( LogRecord  record  )  [inline]

Discards less useful or misleading Jacorb logs based on the message.

TODO-: to improve performance, we could instead match file and line, but then would have to update that information with the next jacorb code change. The implementation already minimizes string comparison by checking only those messages that can occur at the given log level.

TODO: Add repeat guard based on the message, e.g. using MultipleRepeatGuard from jacsutil.

References logLevel.

Referenced by alma::acs::logging::adapters::JacORBFilterTest::testBlankIllegalMessageChars().

void alma::acs::logging::adapters::JacORBFilter::setLogLevel ( Level  level  )  [inline]

Sets the log level that allows this filter to discard log records. This is necessary because our extended filter functionality may downgrade log levels. Log records that passed the level check before may then become invalid. The JDK does not foresee this, that's why we must discard them here based on the level.

References logLevel.

Referenced by alma::acs::logging::adapters::JacORBLoggerFactory::getNamedLogger().


Member Data Documentation

int alma::acs::logging::adapters::JacORBFilter::logLevel = Level.ALL.intValue() [protected]

Referenced by isLoggable(), and setLogLevel().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2