File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes log4j appender.xx.File Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "log4j appender.xx.File" Watch "log4j appender.xx.File" New topic

log4j appender.xx.File

Ian Shieh

Joined: Feb 04, 2010
Posts: 7
log4j.rootLogger=DEBUG, HelloWorld


Question is --- what is the starting or current directory for "log4j.appender.HelloWorld.File" ?
Since I developed a .ear file and give this to someone else and they can deploy to their server, which directory is this "../application.log" supposed to be on the server ? what is this "../" supposed to be ?
Martijn Verburg

Joined: Jun 24, 2003
Posts: 3275

It will depend on the application server, I would not recommend having ../<logname>.log as you may not have permission to put a log file there.

Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
I agree. Here's the link:
subject: log4j appender.xx.File