Wednesday, January 04, 2006

log4j.properties

Happy New Year! Most people have returned to the office.

I can't seem to find an answer as to where to place log4j.properties in an EAR file. Most sites I've read say to place it in WEB-INF/classes; I'm sure that will work fine for a WAR, but not so sure it would work for my application/business-logic code, which is a different JAR within the EAR.

I'll update later when I find out more.

Update: It seems like it works so far. One "problem" is that I'm using Maven, and was wondering how to get the properties file into WEB-INF/classes, especially since you don't create a classes directory under your WEB-INF folder. I put my log4j.properties file in src/main/resources, and Maven did the rest!

No comments: