Unfortunately, there is no such option in the original log4j class. But you can have a look at the class "org.apache.log4j.DailyRollingfileAppender". Method "activateOptions()" contains the following code: