This blog shows how to programatically change the log levels of a particular logger in Embedded GlassFish.
I did a search on the internet for information on how to change the log levels of a particular logger in Embedded GlassFish. The only information I could find was http://docs.sun.com/app/docs/doc/821-1208/gjlfe?l=en&a=view which requires changing $JAVA_HOME/jre/lib/logging.properties. But I am not comfortable changing it at the JDK level.
So, I wrote the following piece of code. May be the Embedded GlassFish users will find it useful: