I was playing arround with log4j and axis, and found the following to produce 
logoutput to the console in which tomcat was started:
----------
import org.apache.log4j.Category;
import org.apache.log4j.BasicConfigurator;
...
    private static Category log = Category.getRoot();
...
      log.info("Starting application");
-------
There is a log4j.properties in the axis.jar, which specifies that all 
output "worse" than info is logged to the console...someone mentioned that it 
should be possible to extract that file, make changes(e.g. to log to a file in 
stead) to it and place it somwhere in the classpath, in order to change how 
axis logs. I didn't manage to get it to work though...

Hope it is helpfull :)

./Dennis

> If you run into problems be sure to check the Jrun log-files. Axis
> also
> writes debug information to log4j-files, but I'm not too sure about how
> to
> make this work. Can anybody say what's needed to make the log4j-output
> appear somewhere?
> 
> 

Reply via email to