Total max size for log files

Is there a way to enable log rotation and limit the total max size for all log files, something similar to the implementation of logback?