• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java.util.logger configuration

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic