logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raghuveer" <raghuve...@infotechsw.com>
Subject RE: Struts and commons logging
Date Tue, 11 Jul 2006 05:29:50 GMT
Where shall we nned to add below code.is it in struts-config or log.xml

-----Original Message-----
From: Jacob Kjome [mailto:hoju@visi.com]
Sent: Monday, July 10, 2006 10:24 PM
To: Log4J Users List; raghuveerv@infotechsw.com
Subject: Re: Struts and commons logging


Quoting Raghuveer <raghuveerv@infotechsw.com>:

> We use struts applications and loggging by log 4j.
>
> We are configuring loggers like normal MVS application.
>
> But,
> What is that i need to do if i want my struts application to use
> commons-logging for logging.
>

I'm not quite sure I understand the question?  commons-logging is a wrapper
for
logging implementations.  If you are currently using Log4j for application
logging, then it is probably the implementation of choice for struts
logging.
Simply define a logger for struts...

<logger name="org.apache.struts">
    <level value="INFO"/>
</logger>

presumably, you've already defined an appender in the primordial <root>
logger,
so no need to define another here unless you care to.

Jake


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


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


Mime
View raw message