|
|
|||||||||||
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.JDK14PerClassPolicy.PolicyGroup
A policy within a policy -- this is exactly like the SimpleLogPolicy except that it also checks to see if the class issuing the log message is in some set.
JDK14PerClassPolicy
Constructor Summary | |
JDK14PerClassPolicy.PolicyGroup()
Default constructor. |
Method Summary | |
void |
addClass(java.lang.String classname)
Add a classname to the set of class names we're listening to. |
void |
addClassPattern(java.lang.String classname)
Add a classname to the set of class name patterns we're listening to. |
void |
clearClassSet()
Clear out the set of class names we're listing to. |
void |
clearPatternSet()
Clear out the set of class name patterns we're listing to. |
java.util.Iterator |
getClassSet()
Get the set of class names (exact matches) we're listing to. |
java.util.Iterator |
getPatternSet()
Get the set of class patterns we're listing to. |
void |
removeClass(java.lang.String classname)
Remove a class name from the set of class names we're listening to. |
void |
removeClassPattern(java.lang.String classname)
Remove a class name pattern from the set of class 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 JDK14PerClassPolicy.PolicyGroup()
Method Detail |
public java.util.Iterator getClassSet()
public void clearClassSet()
public void addClass(java.lang.String classname)
public void removeClass(java.lang.String classname)
public java.util.Iterator getPatternSet()
public void clearPatternSet()
public void addClassPattern(java.lang.String classname)
public void removeClassPattern(java.lang.String classname)
public boolean shouldLog(SyslogMessage m)
shouldLog
in class SimpleLogPolicy
|
Protomatter Classes v1.1.6 Copyright 1998-2001 Nate Sammons |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Protomatter Classes v1.1.6 | http://protomatter.sourceforge.net/1.1.6 |