I have problem with space so need limit size of catalina.out to 10M and limit number of rolls to 3 previous days. Is it possible with only configure logging.properties? Than
Since at least Tomcat 5.5 "the internal logging for Apache Tomcat uses JULI, a packaged renamed fork of Apache Commons Logging that is hard-coded to use the java.util.logging (JUL) framework."
Recent versions of JULI and the Access Log Valve by-default use a YYYY-MM-dd date format. The juli.FileHandler logs are named {prefix}{date}{suffix} where date is yyyy-MM-dd if rotatable is true (default). If false, the date is dropped and Tomcat will not handle file rotation. There is also a maxDays parameter to limit the number of those Tomcat rotated logs that will be kept. You could for example set that to 3 and only have three days worth of logs kept.
The Access Log Valve is more configurable. For example it let you specify a fileDateFormat from the default of yyyy-MM-dd, so you could add HH to rotate every hour, or just rotate monthly. You can also choose to delay the formatted naming until rotation with renameOnRotate.
If you need something fancier than this or JUL's size and count based rotation, it may be best to set rotatable to false and handle rotation externally to Tomcat.