Embedded Glassfish - logging

Posted by Walter White on Stack Overflow See other posts from Stack Overflow or by Walter White
Published on 2010-04-26T02:43:23Z Indexed on 2010/05/12 22:54 UTC
Read the original article Hit count: 698

Filed under:
|
|
|

Hi all,

I have migrated from log4j to logback and also am transitioning to Glassfish from Jetty.

I haven't updated my logback configuration from what I had used with Jetty and consequently am not seeing any logs being written.

What logging provider should I use? Should I just do my configuration with the Glassfish loggers in domain.xml?

<access-log rotation-interval-in-minutes="15" rotation-suffix="yyyy-MM-dd"/>

<log-service file="${com.sun.aas.instanceRoot}/logs/server.log" log-rotation-limit-in-bytes="2000000">
                <module-log-levels/>
            </log-service>

These are the defaults in domain.xml. I'd like to split the longs up into several files as well as control log level for each package. I think I can figure out how to configure them, but should I use Glassfish logging or can I use logback?

Walter

© Stack Overflow or respective owner

Related posts about glassfishv3

Related posts about logging