|
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.protomatter.syslog.SimpleLogPolicy | +--com.protomatter.syslog.PerChannelPolicy.PolicyGroup
A policy within a policy -- this is exactly like the SimpleLogPolicy except that it also checks to see if the channel issuing the log message is in some set.
PerChannelPolicy
Constructor Summary | |
PerChannelPolicy.PolicyGroup()
Default constructor. |
Method Summary | |
void |
addChannelName(java.lang.String channelname)
Add a channelname to the set of channel names we're listening to. |
void |
addChannelPattern(java.lang.String channelname)
Add a channelname to the set of channel name patterns we're listening to. |
void |
clearChannelSet()
Clear out the set of channel names we're listing to. |
void |
clearPatternSet()
Clear out the set of channel name patterns we're listing to. |
java.util.Iterator |
getChannelSet()
Get the set of channel names (exact matches) we're listing to. |
java.util.Iterator |
getPatternSet()
Get the set of channel patterns we're listing to. |
void |
removeChannelName(java.lang.String channelname)
Remove a channel name from the set of channel names we're listening to. |
void |
removeChannelPattern(java.lang.String channelname)
Remove a channel name pattern from the set of channel name patterns we're listening to. |
boolean |
shouldLog(SyslogMessage m)
Determine if the given message should be logged. |
Methods inherited from class com.protomatter.syslog.SimpleLogPolicy |
addChannel, getChannels, getLogMask, getName, inMask, removeAllChannels, removeChannel, setChannels, setChannels, setLogMask, setLogMask, setName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PerChannelPolicy.PolicyGroup()
Method Detail |
public java.util.Iterator getChannelSet()
public void clearChannelSet()
public void addChannelName(java.lang.String channelname)
public void removeChannelName(java.lang.String channelname)
public java.util.Iterator getPatternSet()
public void clearPatternSet()
public void addChannelPattern(java.lang.String channelname)
public void removeChannelPattern(java.lang.String channelname)
public boolean shouldLog(SyslogMessage m)
shouldLog
in class SimpleLogPolicy
|
Protomatter Software v1.1.7 Copyright 1998-2002 Nate Sammons |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Protomatter Software v1.1.7 | http://protomatter.sourceforge.net/1.1.7 |