dsto.dfc.logging
Class LogFilter
java.lang.Object
dsto.dfc.logging.LogFilter
public class LogFilter
- extends Object
A filter for LogEvent's.
- Author:
- Matthew Phillips
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogFilter
public LogFilter()
LogFilter
public LogFilter(LogFilter filter)
select
public boolean select(LogEvent e)
select
public boolean select(int type)
setEnabled
public void setEnabled(int type,
boolean isEnabled)
enableAll
public void enableAll()
disableAll
public void disableAll()
setEnabled
public void setEnabled(String commaDelimitedTypes,
boolean enabled)
throws IllegalArgumentException
- Enable/disable a set of types specified as a comma-delimited list.
- Parameters:
commaDelimitedTypes
- A comma-delimited set of types
acceptable to Log.stringToType(String)
. e.g.
"WARN,DIAGNOSTIC".enabled
- True to enable the types, false to disable.
- Throws:
IllegalArgumentException
- if any of the types in the list
is invalid.- See Also:
setEnabled(int, boolean)
Copyright © 2008 Commonwealth of Australia