Problem configuring application specific loggin glassfish v3
I am using java.util.logging in开发者_如何学Python an EJB application running on glassfish v3. I can see the log messages in server.log but i don't seem to be able to configure the logging level in glassfish\domains\domain1\config\logging.properties. If I use:
Logger logger = Logger.getLogger("com.foo");
To obtain the logger and log with:
logger.info("message");
then I expect that if I set
com.foo.level=WARNING
in logging.properties then the message should not logged. Am I doing something wrong here?
If you use .level=WARNING, only WARNING and above severities will be logged. You will have to set it to FINEST
, FINER
, FINE
, CONFIG
or INFO
to have logger.info(anything)
actually do something.
精彩评论