I use tomcat 9.0,slf4j for logging. The problem was that log files are too big(17GM - the max i saw). I created java-based deleting system for logs. Because tomcat creates new log file every day. But here is one unexpected moment. Tomcat creates log files whenever it may, sometimes it may use old days file. For example today is 16th. This file may be used till 18th. And thats why the size becomes big. Even if configure correct(for my case) log creation i may have logs for 2 days in one file. For example from 16th 1:00 pm till 17th 12:00 am.
So, i want to configure rotation for somehow. Can somebody help?