list archives . users mailing list

Subject: Re: enabling logging

Date view Thread view Subject view Author view Attachment view

From: M.Jackson (michaelj@epcc.ed.ac.uk)
Date: Jun 10, 2003 08:43

Hi Gurmeet,

On Mon, 9 Jun 2003, Gurmeet Singh wrote:

> Hi,
> How can I enable logging in the OGSADAI source code and where will the
> log file get created under the tomcat deployment. I am using release 2
> now. Hope it is the same in the new release also.

You should ensure that you have a CATALINA_OPTS environment variable set
that includes the following:
 
" -Dlog4j.properties.file=<TOMCAT>/webapps/ogsa/WEB-INF/classes/log4j.properties "

where <TOMCAT> is the root directory of your Tomcat distribution.

For example, under UNIX:

 export
 CATALINA_OPTS="$CATALINA_OPTS -Dlog4j.properties.file=<TOMCAT>/webapps/ogsa/WEB-INF/classes/log4j.properties"

For example, under Windows:

 set

CATALINA_OPTS="%CATALINA_OPTS% -Dlog4j.properties.file=<TOMCAT>/webapps/ogsa/WEB-INF/classes/log4j.properties"

The logging information will appear in the file
<TOMCAT>/logs/catalina.out

Regards

mike


Date view Thread view Subject view Author view Attachment view