Set java.util.logging.config.file via the Preferences API.

Discussion in 'Java' started by Robert Mark Bram, Apr 30, 2007.

  1. Hi All,

    The LogManager api docs say that we can set the

    java.util.logging.config.file

    property via the Preferences API.

    Can anyone show an example of how to do this? Currently I run my app
    with an option like the one below, but I would like to move this into
    my main method.

    -Djava.util.logging.config.file=logging.properties


    Rob
    :)
     
    Robert Mark Bram, Apr 30, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Oliver Hirschi

    java.util.prefs.Preferences

    Oliver Hirschi, Jul 16, 2003, in forum: Java
    Replies:
    8
    Views:
    8,774
    Chris Riesbeck
    Jul 16, 2003
  2. Carsten Zerbst

    webstart and java.util.Preferences ?

    Carsten Zerbst, Jul 16, 2003, in forum: Java
    Replies:
    1
    Views:
    547
    S. Balk
    Jul 16, 2003
  3. Stefan Siegl
    Replies:
    0
    Views:
    960
    Stefan Siegl
    Aug 27, 2003
  4. Michael T. Peterson
    Replies:
    2
    Views:
    735
    Michael T. Peterson
    Sep 9, 2003
  5. Royan
    Replies:
    1
    Views:
    1,452
    Andrea Francia
    Apr 1, 2008
Loading...

Share This Page