> On Oct 22, 2024, at 19:19, Amit Pande <amit.pa...@veritas.com.INVALID> wrote: > > Hello all, > > I am looking for way to print certain logs from Tomcat to actual console > (stdout) instead of getting those redirected to Catalina.out (default). > > e.g. messages like below (and errors failed to deploy any application) if can > be redirected to console, it would avoid looking up into Catalina log file > while looking for progress of the server startup (deploying all apps). > > "INFO [Catalina-utility-2] > org.apache.catalina.startup.HostConfig.deployDirectory Deploying web > application directory"
Have you looked at the logging documentation? (Use the page for the Tomcat version you’re actually using.) https://tomcat.apache.org/tomcat-10.1-doc/logging.html Look at the logging.properties example near the bottom of the page to see how to associate handlers with Tomcat facilities. - Chuck