Using Logback in Glassfish v3
The article provides details on how to integrate custom logging framework like slf4j and logback in glassfish v3. The steps required to achieve this are
1. Add a jvm option
-Dlogback.configurationFile=${com.sun.aas.instanceRoot}/config/logback.xml
from the admin console i.e. server-config -> JVM Settings -> JVM Options
2. Place your logback.xml file under <domain-directory>/config.
The logs would be created relative to <domain-directory>/config.
Posted on March 25, 2011, in glassfish, logback and tagged glassfish, logging. Bookmark the permalink. Leave a comment.
Leave a comment
Comments 0