How is the search path for "log4j.properties" file?

Discussion in 'Java' started by Llyod Altman, Aug 18, 2010.

  1. Llyod Altman

    Llyod Altman Guest

    Assume a java program declares and uses a log4j logger.

    How is the search path for the responsible log4j.properties file resp.
    how is the priority if multiple log4j.properties files exist?

    I can think of different levels:

    log4j.properties file in the directory where the calling *.class/*.jar is placed
    log4j.properties file in the directory where the log4j.jar is placed
    log4j.properties file in the directory where the java.exe is placed
    log4j.properties file in a special config directory (of the appserver)
    log4j.properties file in the directory on the PATH environment variable

    Lloyd
    Llyod Altman, Aug 18, 2010
    #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. Brett Sheeran
    Replies:
    0
    Views:
    2,876
    Brett Sheeran
    Jul 15, 2003
  2. Jim
    Replies:
    0
    Views:
    5,956
  3. Rodolfo
    Replies:
    0
    Views:
    940
    Rodolfo
    Jul 12, 2004
  4. John
    Replies:
    3
    Views:
    3,594
  5. Gianni Galore
    Replies:
    0
    Views:
    1,247
    Gianni Galore
    Sep 8, 2010
Loading...

Share This Page