Well, almost all the logging is in the Java class files.  However, I just
wanted to have some sort of debug tool available in case I wanted to debug
my JSPs.  Commons-logging lets you do that as well but I wanted to use
taglibs-log.  To be quiet honest with you, I personally feel it is something
we can do without.  But I have been "instructed" to figure it out and am
quite lost.

-----Original Message-----
From: David Graham [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 2:24 PM
To: [EMAIL PROTECTED]
Subject: Re: Using taglibs-log.tld for logging


Sorry I don't know how to solve your problem but why are you logging from a 
JSP?  IMHO, logging should be in a Java class not a view page.

David






>From: "Pani, Gourav" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: Using taglibs-log.tld for logging
>Date: Tue, 21 Jan 2003 14:14:51 -0500
>
>I have been struggling with the implementation of taglibs-log.tld with my
>struts project.
>
>The following line is included in web.xml.
>
>       <taglib taglib-uri='/WEB-INF/taglibs-log.tld'
>taglib-location='/WEB-INF/taglibs-log.tld'/>
>
>The file taglibs-log.tld is present under /WEB-INF
>The file taglibs-log.jar is present under /WEB-INF/lib
>The file log4j.properties is present under /WEB-INF/classes and is loading
>successfully as my blank FileAppenders are being created successfully in 
>the
>log destination directory.
>
>The following line is present in my JSP to include the taglib.
>
>       <%@ taglib uri="/WEB-INF/taglibs-log.tld" prefix="log" %>
>
>The following line is used in my JSP to create a log entry.
>
><log:debug category="FilterDebug" message="This is the debug message"/>
>
>I am skeptical whether my use of category is correct or not.  I have been
>scouring the web and going through both Log4J documentation as well as
>Taglibs-Log documentation (which is really limited due to its recent
>release) but have been unable to figure out how the category maps to log4j.
>I am including a section of my log4j.properties file in case that would
>help.
>
>
># Servlet Error Logger
>log4j.appender.FilterError=org.apache.log4j.FileAppender
>log4j.appender.FilterError.Threshold=ERROR
>log4j.appender.FilterError.file=/resin/webapps/bpo/WEB-INF/logs/FilterError
.
>log
>log4j.appender.FilterError.layout=org.apache.log4j.PatternLayout
>log4j.appender.FilterError.layout.ConversionPattern=%d{DATE} [Thread %5t]
>%-5p [%c] - %m%n
>
># Servlet Warn Logger
>log4j.appender.FilterWarn=org.apache.log4j.FileAppender
>log4j.appender.FilterWarn.Threshold=WARN
>log4j.appender.FilterWarn.file=/resin/webapps/bpo/WEB-INF/logs/FilterWarn.l
o
>g
>log4j.appender.FilterWarn.layout=org.apache.log4j.PatternLayout
>log4j.appender.FilterWarn.layout.ConversionPattern=%d{DATE} [Thread %5t]
>%-5p [%c] - %m%n
>
># Servlet Debug  Logger
>log4j.appender.FilterDebug=org.apache.log4j.FileAppender
>log4j.appender.FilterDebug.Threshold=DEBUG
>log4j.appender.FilterDebug.file=/resin/webapps/bpo/WEB-INF/logs/FilterDebug
.
>log
>log4j.appender.FilterDebug.layout=org.apache.log4j.PatternLayout
>log4j.appender.FilterDebug.layout.ConversionPattern=%d{DATE} [Thread %5t]
>%-5p [%c] - %m%n
>
>
>Any help is greatly appreciated.
>
>Lost in Log-land.
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>


_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* 
http://join.msn.com/?page=features/virus


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to