<p>I'm currently logging via the simplest of methods within my servlet using Tomcat.  I use the ServletConfig.getServletContext().log to record activity.  This writes to the localhost.YYYY-MM-DD.log in $TOMCAT_HOME/logs.</p>

<p>I don't want to get away from the simplicity of this logging mechanism unless absolutely necessary.  But I would like to name my log file.  Rather than "localhost".YYYY-MM-DD.log, is there a way to have it write to "myAppName".YYYY-MM-DD.log.  I know I could create my own mechanism, but again, I looking for simplicity here.</p>

<p>I'm hoping to stay away from a complete framework like Log4j.</p>

Filip's answer isn't entirely correct. I ran a program to sniff the HTTP headers on my workstation, and the Java applet does in fact present the ASP.NET authentication ticket in some circumstances - just not reliably enough for my needs.
Eventually I did find a solution to this, but it didn't entirely solve my problem. You can add an entry to the web.config in .NET 2.0:
```
<httpCookies httpOnlyCookies="false" />
```
; but this didn't work for all my users.
The long term solution turned out to be modifying the Java applet so that it doesn't need to retrieve anything from the web server.