You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Grimm, Markus" <Gr...@juris.de> on 2009/10/19 11:58:06 UTC

Avoid Logging to catalina.out

Hi all,
 
I use axis2 with tomcat and I have the problem that all axis2-outputs go
to catalina.out, too.
I think both axis2 and tomcat use as configuration the log4j.properties
in WEB-INF/classes.
In this logfile the _console-appender_ is activated and for this reason
all axis2-stuff goes to catalina.out?!
 
Is there a possibility to change this behaviour for the axis2-outputs.
F.e. Is there a way to give axis2 a own log4j-config?
Disabling the console-appender could mask the tomcat-outputs but this
stuff I would like to see anymore.
My catalina.out gets huge and anytime there's no chance to deal with the
file.
 
Thanks
Markus
 
 
 

Re: Avoid Logging to catalina.out

Posted by Mauro Molinari <ma...@cardinis.com>.
Grimm, Markus ha scritto:
> Is there a possibility to change this behaviour for the axis2-outputs.
> F.e. Is there a way to give axis2 a own log4j-config?
> Disabling the console-appender could mask the tomcat-outputs but this
> stuff I would like to see anymore.
> My catalina.out gets huge and anytime there's no chance to deal with the
> file.

Instead of providing to Axis2 its own log4j configuration, you simply 
need to edit log4j.properties and provide a different logging behaviour 
for the classes in the org.apache.axis2 hierarchy.
You should read the Log4j documentation in order to do this.

-- 
Mauro Molinari
Software Designer & Developer
E-mail: mauro.molinari@cardinis.com