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

abeans::pluggable::acs::logging::LoggingLevelPolicy Class Reference

List of all members.

Public Member Functions

 LoggingLevelPolicy (Level value)
 LoggingLevelPolicy (Level value, short conformance, short range) throws AssertionFailed
 LoggingLevelPolicy (String value)
String getDescription ()

Static Public Attributes

final String NAME = "LoggingLevelPolicy"

Detailed Description

This policy can be installed into loggers supporting subclasses of LoggingLevelPolicy.

The handler installed as a result of this policy will log all message log entries with a level equal to or greater than the level carried as a value of this policy. If, during installation of the policy, the console handler is already installed, the QoSProvider installing the policy should recheck the logging levels.

Author:
Gasper Tkacik (gasper.tkacik@cosylab.com)

Matej Sekoranja (matej.sekoranja@cosylab.com)

See also:
MessageLogEntry

MessageLog

java.util.logging.Level


Constructor & Destructor Documentation

abeans::pluggable::acs::logging::LoggingLevelPolicy::LoggingLevelPolicy Level  value  )  [inline]
 

Constructs a new policy, given the log level for the console handler, using the default point range and best-effort semantics.

Parameters:
value console handler will log entries with levels higher or equal to the specified level

abeans::pluggable::acs::logging::LoggingLevelPolicy::LoggingLevelPolicy Level  value,
short  conformance,
short  range
throws AssertionFailed [inline]
 

Full constructor form for this policy, takes a level argument for the console handler as well as the conformance and range parameters.

Parameters:
value the minimum level of message logs to be processed by the console handler
conformance can be either best-effort or mandatory
range can be either point or hierarchical
Exceptions:
AssertionFailed not thrown

abeans::pluggable::acs::logging::LoggingLevelPolicy::LoggingLevelPolicy String  value  )  [inline]
 

Constructs a new policy from the string. The allowed values of the string are all values from which a Level instance can be produced using Level.parse() method. They are equal to the names of the static final public fields of the Level class without the Level prefix, e.g. "INFO", "ALL", etc.

Parameters:
value the value from which the Level value of this policy will be constructed


Member Function Documentation

String abeans::pluggable::acs::logging::LoggingLevelPolicy::getDescription  )  [inline]
 

Returns a short description of this policy.

Returns:
description
See also:
abeans.core.Policy#getDescription()


Member Data Documentation

final String abeans::pluggable::acs::logging::LoggingLevelPolicy::NAME = "LoggingLevelPolicy" [static]
 

The name of this policy. By policy design contract this is the name of the class for this policy without the leading package prefix.


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:43:27 2009 for ACS Java API by doxygen 1.3.8