The easiest way is to let the log4j static initializer work for you. Place
log4j.jar in your WEB-INF/lib directory and your log4j.properties file in
WEB-INF/classes.

----- Original Message -----
From: "DUPRAT Alexandre" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 31, 2001 5:03 AM
Subject: struts and log4J


> Hi all,
>
> I'm a newbie in struts.
> I'd like to use log4J with struts.
> I don't know where  i must do the log4J configuration.
> In another servlet, i would do it in init method but i would like to use
> ActionServlet.
> Where can i put code like :
> BasicConfigurator.configure()  ..... ?
>
> Thanks for help.
>
> Alexandre Duprat
> SOPRA. Direction France Sud. Bordeaux
> [EMAIL PROTECTED]
>
>
>
> +----------------------------------------------------------------+
> | Ce courrier ainsi que les fichiers joints sont confidentiels.  |
> | Si vous avez recu ce courrier par erreur, veuillez en informer |
> | l'administrateur du systeme : [EMAIL PROTECTED]               |
> |                          ---------                             |
> | Ce message confirme que le courrier a passe le controle        |
> | antivirus du relais de messagerie Internet avec succes.        |
> +----------------------------------------------------------------+

Reply via email to