For example, the first time I run an application (or immediately after I clear out the /logs directory), I want log4j to write the application\'s logs to a file called log.0
Off the top of my head I don't think this is possible from with Log4j. Maybe when you shut the application down you could rename the .log file so next time you start up a new log file is created.