Hi,
I am trying to setup logging but can't figure out where to put the log4j.properties file.
I am using Eclipse and right now my little project has a src folder for sources and a bin folder for built files. Under src I created my package hierarchy ending with test. In that test package I have a JUnit TestCase to test my DAO with iBatis. Evrything works fine except logging.
My log4j.properties file is just under src. In that folder, there is another jdbc.properties file that is loaded by iBatis maps, so I know it should be accessible. However, it doesn't seem it is and I haven't found a way to test it.
Here is my log4j.properties:
What am I missing?Code:log4j.rootLogger=WARN,stdout log4j.logger.org.springframework=ERROR,stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout-org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%5p [%t] - %m%n
TIA
Pascal


Reply With Quote