struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Maré <mjm...@saca.nl>
Subject log4j log file location (was: RE: struts and log4J)
Date Wed, 01 Aug 2001 14:27:34 GMT
Yes, this is how I did it, and it works fine. Does anybody know how you can
set the location of the log-file to a *relative* path (e.g. /WEB-INF/log)
instead of an absolute path?

Marcel

> -----Oorspronkelijk bericht-----
> Van: William Jaynes [mailto:wjaynes@mediaone.net]
> Verzonden: dinsdag 31 juli 2001 15:43
> Aan: struts-user@jakarta.apache.org
> Onderwerp: Re: struts and log4J
> 
> 
> 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" <ADUPRAT@unedic.fr>
> To: <struts-user@jakarta.apache.org>
> 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
> > aduprat@unedic.fr
> >
> >
> >
> > +----------------------------------------------------------------+
> > | Ce courrier ainsi que les fichiers joints sont confidentiels.  |
> > | Si vous avez recu ce courrier par erreur, veuillez en informer |
> > | l'administrateur du systeme : exp-iris@unedic.fr               |
> > |                          ---------                             |
> > | Ce message confirme que le courrier a passe le controle        |
> > | antivirus du relais de messagerie Internet avec succes.        |
> > +----------------------------------------------------------------+
> 
> 

Mime
View raw message