edu.mscd.cs.javaln
Class LevelFilter

java.lang.Object
  extended by edu.mscd.cs.javaln.LevelFilter
All Implemented Interfaces:
java.util.logging.Filter

public class LevelFilter
extends java.lang.Object
implements java.util.logging.Filter

Print only message from a set of levels, not all greater than some level as is the default.


Constructor Summary
LevelFilter()
           
LevelFilter(java.util.logging.Level l)
           
 
Method Summary
 void add(java.util.logging.Level l)
           
 boolean isLoggable(java.util.logging.LogRecord record)
           
static void main(java.lang.String[] args)
           
 void remove(java.util.logging.Level l)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LevelFilter

public LevelFilter()

LevelFilter

public LevelFilter(java.util.logging.Level l)
Method Detail

add

public void add(java.util.logging.Level l)

remove

public void remove(java.util.logging.Level l)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isLoggable

public boolean isLoggable(java.util.logging.LogRecord record)
Specified by:
isLoggable in interface java.util.logging.Filter

main

public static void main(java.lang.String[] args)