I have a Java Webstart application and I want my log output to go to a file. The application must work on Mac OS X and Windows (and it'd be nice to work on Linux and generally any Unix).
I'm using Logback.
Where should I place my log files? Is there standard code to get a file location that is suitable for logs and will adjust the location appropriately for each platform?