You can use the logging.properties file to define your handlers around the world for the entire application. In this file you can fine-tune your registration needs.
Have a look here or just google for .properties logging.
An example from the above link:
handlers = java.util.logging.ConsoleHandler, java.util.logging.FileHandler java.util.logging.ConsoleHandler.level = INFO java.util.logging.FileHandler.level = ALL java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
You can even set up different logging rules for each of your web applications by placing logging.properties in the WEB-INF / classes of your web application.
source share