• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.util.logger configuration

 
Arul Prakasam Subramaniam
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic