How to set a filter on a logger handler?
This example give you an example on how to set the
Filter of a
logger handler. In the code below we implements the
Filter on the
FileHandler to log only a
Level.SEVERE message. Other
level log will not recorded to the file.