--- On Thu, 9/25/08, Jakub Podlesak <Jakub.Podlesak_at_Sun.COM> wrote:
...
...
> > We use in our app log4j. We must have log4j.propertes
> in classpath.
>
> What works for sure is configuring
> [$JRE_HOME/lib/logging.properties],
> then e.g. for json specific logging, you can use:
>
> com.sun.jersey.impl.json.level = FINEST
>
> If you want to use an app specific logging config,
> you need to use the following property:
>
> java -Djava.util.logging.config.file=myfile
But that wouldn't really do anything for log4j would it? A bridge is needed if log4j output is wanted without system using log4j loggers directly.
I'm not sure if log4j itself provides such a bridge, but I think Simple Logging Facade (slf4j) does provide this. It does get bit complicate with multiple packages but is doable.
-+ Tatu +-