Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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

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; 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.

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.


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:
Generated on Thu Apr 30 02:53:44 2009 for ACS Java API by doxygen 1.3.8