Try the root directory of where you have placed your classes (usually
{APP_ROOT}/WEB-INF/classes).

Rodrigo

----- Original Message -----
From: "Dieter Engelhardt" <[EMAIL PROTECTED]>
To: "Turbine Users List" <[EMAIL PROTECTED]>
Sent: Thursday, February 27, 2003 3:06 PM
Subject: Log actions to particular File


> Hi there,
> i am building an webapp where i want to log the useraction in a particular
> File to be able to monitor what action was performed by the users.
> What i did was to imlement a loging Methode in the SecureAction-Module
which
> is used in every action-module.
> Here is the Code:
>
> import org.apache.log4j.*;
> ....
>
> static Category cat =
> Category.getInstance(VelocitySecureAction.class.getName());
>
> public void Log(RunData data, String sMsg)
> {
> String sUser = data.getUser().getUserName();
> cat.info(sUser + " " + data.getAction() + " " + sMsg);
> }
>
> The problem is that im am not able to find the proper place for the
> log4j.properties where i can configure the location of the logfile.
>
> I tryed different locations but it seems not to be read by log4j.
>
> Has anyone a hint for me?
>
> Thanx
> Dieter
>
>
> ---------------------------------------------------------------------
> 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