I’m currently facing an issue with logging configuration in my Java web application deployed on Tomcat. I’m using Logback as the logging framework and have configured a ConsoleAppender with true to ensure synchronous logging to the console.
Despite these configurations, logs are still being written asynchronously or with noticeable delay in the console. I’ve reviewed and adjusted my logback.xml configuration, checked logging dependencies in my pom.xml, and restarted Tomcat multiple times after each configuration change.
Could you please verify if this configuration appears correct for achieving synchronous logging without delay in the console? Are there any specific JVM parameters or Tomcat configurations that I should adjust to resolve this issue?
I appreciate any assistance or suggestions you can provide!
Thank you,
PM
pape ndongo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.