public class TraceLevelFilter extends Object implements NotificationFilter
TraceNotification
s based on their trace level.
Only trace notifications of the specified level or greater are be allowed through this filter.
Notifications that are not instances of TraceNotification
are suppressed by this filter.
Constructor and Description |
---|
TraceLevelFilter(Level minLevel)
Deprecated.
Replaced with
TraceLevelFilter(TraceLevel) as trace and alarm
levels have been split into different classes. |
TraceLevelFilter(TraceLevel minLevel)
Create a
TraceLevelFilter . |
Modifier and Type | Method and Description |
---|---|
boolean |
isNotificationEnabled(Notification notification)
Determine whether the specified notification should be delivered to notification
listeners using this notification filter.
|
public TraceLevelFilter(Level minLevel)
TraceLevelFilter(TraceLevel)
as trace and alarm
levels have been split into different classes.TraceLevelFilter
. A filter created using this constructor will
only allow SLEE 1.0-compliant trace notifications to pass through where they otherwise
satisfy the filtering criteria.minLevel
- this minimum trace level of trace notifications allowed through
this filter.public TraceLevelFilter(TraceLevel minLevel)
TraceLevelFilter
. A filter created using this constructor will
only allow SLEE 1.1-compliant trace notifications to pass through where they otherwise
satisfy the filtering criteria.minLevel
- this minimum trace level of trace notifications allowed through this filter.public boolean isNotificationEnabled(Notification notification)
isNotificationEnabled
in interface NotificationFilter
notification
- the notification to be sent.true
if the notification should be delivered to notification
listeners, false
otherwise. This method always returns
false
if notification
is not an instance of
TraceNotification
.