Hi,
   Ours looks like this

import org.apache.log4j.Category;
        private static Category logger_ = Category.getInstance(
ChangePasswordAction.class.getName() ); 

Mohan

-----Original Message-----
From: Simon Kelly [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 2:15 PM
To: Struts Users Mailing List
Subject: Re: struts & log4j


should be written as

private transient static final Log log =
LogFactory.getLog(xxx.yyy.zzz.class);

Where xxx.yyy.zzz is the full class path with in the package.

Simon

----- Original Message -----
From: "Dinesh Sampangi" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, February 13, 2003 9:05 AM
Subject: struts & log4j


Hi! All,
          i'm trying to use log4j in struta application.. but when i create
a log4j instance inside(
private final static Logger log = Logger.getLogger(PAF3Entity.class)
) strut action class..the action path is not forwarded..instead it throws
the following at the console.

2003-02-13 01:28:22 - Ctx( /medicare ): 500 R( /medicare +
/Authorisationone.do
+ null) No action instance for path /Authorisationone could be created

but the action tag class & its paths is well defined in the struts config
file.. everything runs fine if the logger instance is not created.

has anyone exp.. this sort . pls help

TIA
Dinesh


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to