java.util.logging.Logger swallowing logs -


i using java.util.logging.logger , want enable log levels. thought following work:

logger.setlevel(level.all); 

but apparently doesn't. info level logging statements taking effect, , others being swallowed.

how enable log levels?

it's log handler swallowing log records. need set log level on handlers too. example:

for (handler handler : logger.getlogger("").gethandlers()) {   handler.setlevel(level.all); } 

or can read configuration logging.properties file (just put in classpath root), or can read logging.properties-style configuration stream using logmanager.getlogmanager().readconfiguration(someinputstream).


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -