At 10:13 AM 12/07/2001, Carolyn Wasikowski wrote:

>First:  when should I configure Log4J?  My Log4J experience, unfortunately,
>far outweighs my JSP/servlet experience, but I'm guessing that all I need to
>do is use a DOMConfigurator within the init() method of the first servlet
>that gets loaded.  (The web app's web.xml specifically requests that the
>servlets are loaded on startup, and specifically lists in which order they
>should be loaded.)  Does this sound like a reasonable approach?

Have you seen the doco on initializing log4j under Tomcat at 
http://jakarta.apache.org/log4j/docs/manual.html ? It discusses several 
options - I tend to use the default initialization approach as this causes 
me less grief.


>Next question:  has anybody made logging requests from within a JSP error
>page?  By "error page," I'm referring to a JSP that sets isErrorPage="true"
>within its <%@ page %> directive.  I'd like to do this, to ensure that
>exceptions get logged.  Again... does this sound like a reasonable approach?

Sorry, can't help here - I steer clear of jsp :-(


>Finally, and perhaps most crucially:  other members of my team have
>suggested that I create a new Appender that displays high-severity log
>messages to the user in a browser frame or a pop-up window.  I've created
>custom Appenders before... but would one like this really be possible?  If
>so... how?

I think someone just recently released an appender that may be of use to 
you - check the mailing list archive for the subject HTTPAppender for a 
copy of it.

HTH

Robert


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

Reply via email to