tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark R. Diggory" <>
Subject Re: Taglibs and Commons Logging
Date Tue, 17 Dec 2002 20:35:01 GMT
I've been attempting this strategy, but it seems that in the web 
application, somehow the properties files in the classes directory don't 
seem to get recognized by commons logging and used. When I compile my 
tags, they get deployed into jars in the WEB-INF /lib directory. I'm 
concerned that the libs endup on the classpath before the properties 
files, I'm wondering if theres a chance that its not searching the whole 
classpath when seaching for the properties files. Am I missing something?

Here's my layout:






And I don't see any log events in catalina.out for the log.debug(...) 
calls I'm making in my classes.


Karr, David wrote:

>Struts uses commons-logging.  If you put a ""
>file in your WEB-INF/classes directory, with the following contents:
>org.apache.commons.logging.Log	=
>Then, you can have a file named "" in the same
>place, with contents like:
>org.apache.commons.logging.simplelog.defaultlog	= warn
>Other systems using commons-logging will probably work the same way.
>>-----Original Message-----
>>From: Mark R. Diggory []
>>I'm trying to find the best way to integrate commons-logging into my 
>>taglibs. Do any of the jakarta taglibraries use the Commons API for 
>>logging? If so, how do you configure the environment so that the 
>>appropriate logging facility is picked up and used? I'm struggling to 
>>get the default be the Simple logger, then other Logging 
>>be used if availble. But I can't see how to do it simply within the 
>>taglibary/Jatr for my project.
>>Any tips would be helpfull,
>>To unsubscribe, e-mail:   
>>For additional commands, e-mail: 
>To unsubscribe, e-mail:   <>
>For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message