You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Ashish Kulkarni <ku...@yahoo.com> on 2002/04/12 20:45:48 UTC
Help in Using LOG4J in development
Hi
With the help of Dave's how to I was able to write few
java programs using log4j and it worked out well for
me, Thanx for all the help.
Now I am developing an Intranet site, I would like to
discuss how can I use Log4j in my development.
1, Can I define a JSP with a bean defined with
application scope and include this JSP in all the
JSP�s, the bean will initialize the Logger class, and
then in the JSP I can directly use the method from the
bean to write the LOG.
2, In Servlets beans, and other java classes do I
always have to define the Logger class at class level
and initialize it in the constructor and then use it
in that particular class, or can I define a static
method in a Final class which initializes the logger
class, and call this static methods to write the LOG.
3. How can I get an XML output from the logger, does
anyone have an configuration file example for getting
an XML output, also how can I use the XML
configuration instead of simple java properties.
Please help in designing the best way to use LOG4J in
my development
Ashish
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>