Public Member Functions | Protected Attributes

alma.acs.logging.adapters.JacORBFilter Class Reference

Inherits java::util::logging::Filter.

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  ) 

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 alma.acs.logging.adapters.JacORBFilter.logLevel.

void alma.acs.logging.adapters.JacORBFilter.setLogLevel ( Level  level  ) 

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 alma.acs.logging.adapters.JacORBFilter.logLevel.

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


Member Data Documentation

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

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties