Results 1 to 4 of 4
  1. #1
    Peter is offline Senior Member
    Join Date
    Jun 2007
    Posts
    119
    Rep Power
    0

    Default log4j property file in my application

    I'm developing a rcp plugin application and implement a log4j to log in
    but when I export the plugin as a product of the eclipse, the log file doesn't generate.
    Where should I put the log4j.properties in my application of the plugin rcp?

    thanks,
    peter

  2. #2
    Albert is offline Senior Member
    Join Date
    Jun 2007
    Posts
    114
    Rep Power
    0

    Default RE: log4j property file in my application

    Hello, for that they were interested in LOG4J I found a tool very good to filter and to see log using a XMLLayout format.

    Log4j Version 1.2.14: Package org.apache.log4j.chainsaw

    Albert:rolleyes:

  3. #3
    Jack is offline Senior Member
    Join Date
    Jun 2007
    Posts
    130
    Rep Power
    0

    Default

    I checked the documentation of log4j and the properties file must be in the path.
    Particularly I use this code to configure it:
    Java Code:
    private static final File LOG_PROPS = new File("logger.properties");
    ...
    if (LOG_PROPS.exists()) {
    PropertyConfigurator.configure(LOG_PROPS.getPath());
    } else {
    BasicConfigurator.configure();
    }
    While the logger.properties file is in the directory where the application executes, it works well.
    ;)

  4. #4
    prakashru is offline Member
    Join Date
    Jun 2007
    Posts
    1
    Rep Power
    0

    Default

    How and where to install the log4j.properties for my simple application....
    I am new in log4j

Similar Threads

  1. How to store property file into key value pair
    By Java Tip in forum java.util
    Replies: 0
    Last Post: 04-05-2008, 10:16 AM
  2. Initializing property object from a file
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-29-2007, 04:55 PM
  3. problem locating file in web application
    By Rem in forum New To Java
    Replies: 0
    Last Post: 11-09-2007, 04:00 PM
  4. How to make a web application as .exe file
    By madhusudhangovindu in forum Advanced Java
    Replies: 1
    Last Post: 08-02-2007, 03:58 PM
  5. Property File
    By Peter in forum JDBC
    Replies: 2
    Last Post: 07-04-2007, 03:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •