You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jerry Jalenak <Je...@LABONE.com> on 2002/08/05 19:02:02 UTC

commons-logging.properties not being found

I'm in the process of implementing logging in my webapps using log4j.  I've
created a commons-logging.properties as follows:

	org.apache.commons.logging.Log =
org.apache.commons.logging.impl.Log4JCategoryLog

In my log4j.properties I've got

	log4j.debug = true
	log4j.disableOverride = false
	log4j.disable = INFO

	#
	# rootLogger - log all messages
	#

	log4j.rootLogger = DEBUG, rootLoggerDest
	log4j.appender.rootLoggerDest = org.apache.log4j.ConsoleAppender
	log4j.appender.rootLoggerDest.layout =
org.apache.log4j.PatternLayout
	log4j.appender.rootLoggerDest.layout.ConversionPattern = %d %t %-5p
%c - %m%n

Both of these files are in my /WEB-INF/classes directory.  When ever I try
to log something, I do get a message on my Tomcat console, but it is
apparently using the SimpleLog format that is the standard for
commons-logging.  I've been through the mail archives but didn't find a good
example or explanation as to why this isn't working.  I've also looked at
Chuck's chapter on logging, as well as the log4j doc - haven't really found
anything relevant.  What am I doing wrong?

TIA,


Jerry Jalenak
Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496
jerry.jalenak@labone.com


This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at (800)388-4675.



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>