Tomcat 9 was appending it's logs to catalina.log fine. Since catalina.log contained too many content, for debugging my application, I wanted only fresh logs.
So I deleted all lines from log file and saved it. But soon after that, tomcat stopped writing logs to catalina.log until I restart my tomcat server again.
Once restarted, it again works fine and same happens if I delete lines again. I'm using slf4j configured to use log4j2 implementation. It's a Spring Boot application. Log4j2 is configured using xml file. xml file is same as xml file in this thread's answer.
How to delete log content without interrupting tomcat?
Thank you.