Thanks to Eduardo and Nick who pointed out a couple of bugs in the
TimeAndSizeRollingAppender. The first was a start-up bug which meant that the writer was not being initialised with the size of an existing log file. The second was an NPE issue that occurred if a filename was configured without a path. Both are fixed and the new code is available for download at
http://www.simonsite.org.uk/resources/lib/log4j-rolling-appender.jar.