← Back to team overview

dhis2-devs team mailing list archive

Re: Velocity log

 

Hi Jason,

I think the easiest is maybe to tweak the startup script you are running to cd into the log directory before starting tomcat. Then velocity.log will end up there.. If you use ubuntu packages, you can change the existing cd in /etc/init.d/tomcat6 (or the equivalent). Or chmod  $CATALINA_BASE, which is where it cd-s to out of the box.

Generally, it is a bit difficult to fix the log setup to write to files other than relatively (since it will vary from place to place), but it should be possible to override the default log4j setup with something like 'export TOMCAT_OPTS="-Dlog4j.configuration=<your log4j config>"',but it is a bit more work to setup... There you could silence velocity logging, route it to sysout or identify the file to log to.

Jo


Den 28. okt. 2011 kl. 11.52 skrev Jason Pickering:

> I am sure this may have  been answered before, but I cannot seem to find it. I get some annoying messages in my catalina.out file, which I would rather not see related to DHIS not being able to write to velocity.log. 
> 
> It seems to want to write this in rather random locations, and I am not even slightly interested in this log. Is there a way to either configure the logging system not to log messages from velocity (there are a bunch), or to simply provide a path to a directory which I actually want the logs to go to?
> 
> Regards,
> Jason
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp



Follow ups

References