users@glassfish.java.net

Logging In Glassfish

From: <jcfolsom_at_pureperfect.com>
Date: Thu, 04 Oct 2012 00:38:16 -0700

Hi,

I want to use commons logging in my web application and write to server.log. In the past, glassfish picked up the fact that I was using commons logging and wrote all of the log statements to server.log using 1.4 logging without requiring any configuration. That apparently is no longer the case.

Now when I use commons logging I get:

log4j:WARN No appenders could be found for logger (my.classname).

This seems highly confusing to me since I'm not using log4j. How do I configure glassfish so that my log statements go to server.log?

Thanks!