Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

log4j appender.xx.File

 
Ian Shieh
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
log4j.rootLogger=DEBUG, HelloWorld

...
...
log4j.appender.HelloWorld.File=../application.log


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
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic