Re: Java Logging API problems
From: Robert Klemme (bob.news_at_gmx.net)
Date: 11/24/04
- Previous message: Simor: "Java Logging API problems"
- In reply to: Simor: "Java Logging API problems"
- Next in thread: Simor: "Re: Java Logging API problems"
- Reply: Simor: "Re: Java Logging API problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 24 Nov 2004 11:17:50 +0100
"Simor" <MSSimor@gmx.de> schrieb im Newsbeitrag
news:53573669.0411230923.485c835@posting.google.com...
> Hi,
> i try to use the java logging api in my project. But there is a
> problem, maybe somebody can help me:
>
> I don't want the standard configuration for the logger from the
> /lib/logging.properties. I want the LogManger to read and follow my
> 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");
>
> before i create my LogManager like this:
> LM = LogManager.getLogManager();
>
> But it doesn't work. If got no errormsg, but changes in the
> configuration file doesn't have any effect on application logging
> behavior.
>
> THX
> Simor
>
> 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
- Previous message: Simor: "Java Logging API problems"
- In reply to: Simor: "Java Logging API problems"
- Next in thread: Simor: "Re: Java Logging API problems"
- Reply: Simor: "Re: Java Logging API problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]