dsto.dfc.logging
Class LogFilter

java.lang.Object
  extended by dsto.dfc.logging.LogFilter

public class LogFilter
extends Object

A filter for LogEvent's.

Author:
Matthew Phillips

Constructor Summary
LogFilter()
           
LogFilter(LogFilter filter)
           
 
Method Summary
 void disableAll()
           
 void enableAll()
           
 boolean select(int type)
           
 boolean select(LogEvent e)
           
 void setEnabled(int type, boolean isEnabled)
           
 void setEnabled(String commaDelimitedTypes, boolean enabled)
          Enable/disable a set of types specified as a comma-delimited list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogFilter

public LogFilter()

LogFilter

public LogFilter(LogFilter filter)
Method Detail

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