Search code examples
javalog4jjava-web-startweb

Logging in Java Web Start using log4j


I am migrating my application to Java Web Start. I have a situation that my application logs the message using log4j and configuration file create the logs in the installation directory.

I am not sure how to create and store the logs while using Java Web Start. Could any one tell me how to specify the file location for log4j?


Solution

  • We can add following entry in the log4j.property file

    log4j.appender.F.File=${user.home}/quest.log