File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes java.util.logger configuration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "java.util.logger configuration" Watch "java.util.logger configuration" New topic
Author

java.util.logger configuration

Arul Prakasam Subramaniam
Greenhorn

Joined: Nov 06, 2008
Posts: 2
I am using java.util.logging.Logger in my application. I need to change the logger Level for my application through the properties file. I am able to get the configuration for a stand alone java file if I run the command
java -Djava.util.logging.config.file=d:/project/logging.properties

I tried with setting the system environment variable as
java.util.logging.config.file=d:/project/logging.properties

How to configure this properties file for a application running in websphere server running in RAD 7.0?
Arul Prakasam Subramaniam
Greenhorn

Joined: Nov 06, 2008
Posts: 2
I am using java.util.logging.Logger in my application. I need to change the logger Level for my application through the properties file. I am able to get the configuration for a stand alone java file if I run the command
java -Djava.util.logging.config.file=d:/project/logging.properties

I tried with setting the system environment variable as
java.util.logging.config.file=d:/project/logging.properties

but this is not working. I the java.lang.System class it is mentioned that

* The properties currently provided by the virtual
* machine are:
* java.vendor.url
* java.class.path
* user.home
* java.class.version
* os.version
* java.vendor
* user.dir
* user.timezone
* path.separator
* os.name
* os.arch
* line.separator
* file.separator
* user.name
* java.version
* java.home
Other than this property, all the properties value
like System.getProperty("java.util.logging.config.file") are giving null

How to configure this properties file for my application running in websphere server running in RAD 7.0?

Thanks,
Arul
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: java.util.logger configuration