Configuring Tomcat 9 to log to stdout

Karl Hill
Dec 21, 2023

Configuring Tomcat 9 to log to stdout (standard output) can be useful, especially in environments where you want to capture the logs and other application logs in a centralized logging system. To achieve this, you need to adjust Tomcat’s logging configuration. Here are the steps to configure Tomcat 9 to log to stdout.

Option 1: Configure logging.properties

1. Navigate to Tomcat's `conf` directory:

cd /path/to/tomcat/conf

--

--

Karl Hill

Full Stack Engineer at NASA. Volunteer at Smithsonian’s The Renwick Gallery, and former drummer of #GovernmentIssue. https://www.karlhill.com