Sure it's possible. You just have to send a message to the server and have some process on the server write that message to a log file. As long as it's the same server you download the applet from (unsigned applets are forbidden to talk to any other server), you can use
RMI, a
custom network solution, or, if your web server provides the API, a
servlet.