I use Log4j with the RollingFileAppender to create a log rotation based on size.
RollingFileAppender
How can I configure it to log to each file for a certain amount of
Use a DailyRollingFileAppender.
In particular, setting its 'datePattern' property to '.'yyyy-MM-dd-HH would cause file to rotate every hour.
'.'yyyy-MM-dd-HH