Saturday, November 3, 2007 10:50 PM
I have noticed this, too.
There is a Java Environmental variable that gives the path to your application.... You can get a list of them by checking in the JavaDocs under java.lang.System.getProperties().
Because Unix, Linux, Windoz and the AS/400 all use different file paths, I often will get that environmental varable and use it as a prefix to where I want to put my log file.
A relative path will not work for log files, because the Logger has NO CLUE where the project is located. You also may want to have your log file in an area on a Mapped drive (not a real good idea, 'cause when you loose the mapping the logger breaks), or in a totally different area on your server than in your app web file.