logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject cvs commit: logging-log4j/src/xdocs faq.xml
Date Thu, 16 Sep 2004 14:28:18 GMT
yoavs       2004/09/16 07:28:18

  Modified:    src/xdocs faq.xml
  Log:
  Added FAQ question and answer on log4j usage within JSP pages.
  
  Revision  Changes    Path
  1.3       +23 -2     logging-log4j/src/xdocs/faq.xml
  
  Index: faq.xml
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/xdocs/faq.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- faq.xml	3 Sep 2004 13:14:19 -0000	1.2
  +++ faq.xml	16 Sep 2004 14:28:18 -0000	1.3
  @@ -12,7 +12,7 @@
     <center>
       <h2>Frequently Asked Questions about log4j</h2>
       <h3>Ceki  G&#252;lc&#252;, Paul Smith, Chris Taylor<br/>
  -    May 2002, last updated on August 13th, 2004</h3>
  +    May 2002, last updated on September 15th, 2004</h3>
     </center>
   
      <faqSection>
  @@ -535,7 +535,28 @@
   	Logger column anyway...
   	</p>
         </answer>
  -    </question>  
  +    </question>
  +
  +    
  +    <question>
  +      <title>Are there suggested approaches for logging in JSP pages?</title>
  +      <answer>
  +        <p>
  +        The suggested approach depends on your design requirements.  If you or
  +        your organization has no constraints on the use of Java in JSP pages,
  +        simply use log4j normally in <code>&lt;% ... %&gt;</code> statements
  +        as indicated in the Short Manual and the rest of the documentation.
  +        </p>
  +        <p>
  +        However, if your design calls for a minimum amount of Java in your JSP
  +        pages, consider using the
  +        <a href="http://jakarta.apache.org/taglibs/doc/log-doc/intro.html">Log Taglib</a>
  +        from the Jakarta Taglibs project.  It provides logging JSP tags that invoke
  +        log4j.
  +        </p>
  +      </answer>
  +    </question>
  +  
     </faqSection>
   
     <faqSection>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message