You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Swami Iyer <SI...@descartes.com> on 2002/04/01 18:19:47 UTC
RE: Problem specifying the properties file path in PropertyConfig
urat or
If you want to use backward slash you can escape it but the forward slash
"/projects/util/log4jProps.lcf" should have worked. We are using it in our
servlet. Remember if any of your system (development or production) is UNIX
then the file name is case sensitive.
Thanks,
Swami
> -----Original Message-----
> From: Nair, Ranjini [mailto:RNair@mail.intracorp.com]
> Sent: April 1, 2002 11:12 AM
> To: 'Log4J Users List'
> Subject: RE: Problem specifying the properties file path in
> PropertyConfig urat or
>
>
> Swami,
>
> I've tried both ways. Both don't seem to work. The first one
> still fails to
> initialize and I cannot use \projects\util\log4jProps.lcf as
> the compiler
> complains about invalid escape characters.
>
> Thanks,
> Ranjini.
>
> > -----Original Message-----
> > From: Swami Iyer [SMTP:SIyer@descartes.com]
> > Sent: Monday, April 01, 2002 11:06 AM
> > To: 'Log4J Users List'
> > Subject: RE: Problem specifying the properties file path in
> > PropertyConfig urat or
> >
> > You are specifing the file in the URI format and that's why
> the drive is
> > necessary. All it requires is the relative path, you can try
> > /projects/util/log4jProps.lcf or
> \projects\util\log4jProps.lcf and it
> > should
> > work.
> >
> > Swami
> >
> > > -----Original Message-----
> > > From: Nair, Ranjini [mailto:RNair@mail.intracorp.com]
> > > Sent: April 1, 2002 10:53 AM
> > > To: 'log4j-user@jakarta.apache.org'
> > > Subject: Problem specifying the properties file path in
> > > PropertyConfigurat or
> > >
> > >
> > > Hi All,
> > > I am having problems specifying the path for the
> properties file in
> > > PropertyConfigurator.configureAndWatch(). I'm using
> log4j1.1.3 and am
> > > initilizing log4j in the servlet. I'm calling this method as,
> > >
> > > PropertyConfigurator.configureAndWatch("\\projects\util\log4jP
> > > rops.lcf",
> > > 5000).
> > >
> > > I find that on our development servers, this does not work
> > > and I need to
> > > specify the drive in order for the initialization to work,
> > >
> > > PropertyConfigurator.configureAndWatch("c:\\projects\util\log4
> > > jProps.lcf",
> > > 5000). I have this directory in the CLASSPATH but that
> > > doesn't seem to help.
> > >
> > > The drive is different on the development, QA and production
> > > machines. Is
> > > there any way that I can overcome this dependency on the
> drive letter?
> > >
> > > Thanks,
> > > Ranjini.
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > <ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
> > > <ma...@jakarta.apache.org>
> > >
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>