beautypg.com

Filters – HP Integrity NonStop H-Series User Manual

Page 76

background image

Table 24 Symbols and descriptions (continued)

Description

Symbols

Specifies the stack trace of any exception that needs to be logged. The
information that is logged contains extended module information.

%E

Specifies the file name of the class that is calling the log method.

%F

Specifies the resource key (if any) of the log message.

%k

Specifies the complete source location information. The output is equivalent to
%C.%M(%F:%L)

.

%l

Specifies the line number in the source file where the log method is invoked.

%L

Specifies the formatted log message included in any stack trace contained in
to be logged.

%m

Specifies the name of the method where the log message originated.

%M

Specifies a new line character.

%n

Specifies the level of the log message (INFO / DEBUG/ WARN...).

%p

Specifies a localized name of the level.

%P

Specifies the relative time in milliseconds since the log is initialized.

%r

Specifies the simple log message without any stack trace in the message.

%s

Specifies the name of the thread that writes the log message.

%t

Specifies the log4j Nested diagnostic context.

%x

Specifies the log4j diagnostic context.

%X

Specifies the time zone.

%z

Filters

Filters are used to provide precise control over what is logged, and beyond the control provided
by the log levels. NSASJ (inherited from JBoss) has a set of predefined filters. All the predefined
filters implement java.util.logging.Filter interface. A log record gets published if and
only if the filter returns true when the isLoggable method is invoked.

Table 25 (page 76)

lists

all the filters and the conditions in which it returns a value of true. The filters are classified as
follows:

1.

Composite: This type of filter can accumulate results of other filters. Such filters need to be
configured with child filters.

2.

Standalone: This type of filters can exist independently of other filters and implement the filter
interface that is based on certain criteria.

Table 25 Filters and conditions

Description

Type

Filter Name

This filter accepts other filters as its child elements.
It returns true if and only if all its child filters return

Composite

all

true. This filter is also called the AND filter as the
result is nothing but an AND operation of all the
constituent filters.

This filter accepts other filters as its child elements.
It returns true if any of its child elements returns

Composite

any

true. This filter is also called the OR filter as the
result is a logical OR of the results of its
constituent filters.

This filter always returns a value true.

Standalone

accept

76

Configuring NSASJ

This manual is related to the following products: