wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
Similar Threads
NX: which logging file?
JDK Logger
Logging in assignment
Use of JDK1.4 logging
Java Web Start and JDK Logger