> Hi,
> i try to use the java logging api in my project. But there is a
[quoted text clipped - 4 lines]
> own configuration file. So i set the java propertie
> "java.util.logging.config.file", like this:
System.setProperty("java.util.logging.config.file",System.getProperty("use
r.dir")
> + System.getProperty("file.seperator") + "customproperties");
>
[quoted text clipped - 9 lines]
>
> P.S. I use eclipse 3.1 M2.
Did you try setting the property on VM start via
"-Djava.util.logging.config.file=your_file_name"? Did it make a
difference?
robert
Simor - 25 Nov 2004 10:30 GMT
> Did you try setting the property on VM start via
> "-Djava.util.logging.config.file=your_file_name"? Did it make a
> difference?
>
> robert
Thanks for the hint, it works. But is there any way to set this
proberty within my source code, not as parameter for the VM start?
Robert Klemme - 25 Nov 2004 13:04 GMT
> > Did you try setting the property on VM start via
> > "-Djava.util.logging.config.file=your_file_name"? Did it make a
[quoted text clipped - 4 lines]
> Thanks for the hint, it works. But is there any way to set this
> proberty within my source code, not as parameter for the VM start?
AFAIK these properties are meant to be set on the command line and not
from inside the VM. You might have to resort to another mechanism.
Kind regards
robert
Xavier Tarrago - 26 Nov 2004 08:25 GMT
What about
System.setProperty("java.util.logging.config.file",
"my/logging/file/logging");
> > "Robert Klemme" <bob.news@gmx.net> wrote in message
> news:<30j5eiF30q72oU1@uni-berlin.de>...
[quoted text clipped - 14 lines]
>
> robert
Robert Klemme - 26 Nov 2004 09:56 GMT
> What about
> System.setProperty("java.util.logging.config.file",
> "my/logging/file/logging");
That didn't work (see the OP's original post). Probably it was too late.
robert
> > > "Robert Klemme" <bob.news@gmx.net> wrote in message
> > news:<30j5eiF30q72oU1@uni-berlin.de>...
[quoted text clipped - 14 lines]
> >
> > robert