# How to disable stdout and stderr logging on Windows

### Purpose

When DBSync is run as a Windows Service, Tomcat creates additional stdout and stderr log files under logs. These logs are in addition to DBSync's own log files and are not necessary, and in some cases, you may wish to disable them to save disk space.

### Solution

1. Identify the name of the service that DBSync is installed as in Windows (Control Panel > Administrative Tools > Services):\
   ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXcAT5SYbb4Wn4LsmOGm_HPC76LE7f2fqEa1hyz8QYNm6dcS4brVGkJJE3yq2mevPuyQmVXKGxPzIUakLnLejDwJ96l7tZ6H8lIKKgrqHoFv4qN6hnNUmbDUrYMGT-Lf9chZSRaXoQ?key=Gtxl3pYhMVBZE44eZyXNaad-)\ <br>
2. Open a command prompt from Start > Run > type 'cmd' > Enter.
3. Change the directory to the bin directory of your DBSync installation directory.
4. Click on the Logging tab to see the current logging configuration:\
   ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeYCy5WHM8LDK1sDQCidFg3D4m6W2cRMuGYvbNzRCFLobOV4T-RKksULlFMupbvOrEjdcm1ZEeGElj2RioCXjxTqONk4-L61kyx4JgmhlZNELRzJHwCwwm96w3ZItdGsx7e30_Z?key=Gtxl3pYhMVBZE44eZyXNaad-)
5. Under Redirect Stdout and Redirect Stderror, remove the value "auto" so the fields are left empty.
6. Click Apply and OK to save your changes.

After these settings changes, restart DBSync, and the Tomcat container will no longer log further output to stdout or stderr. Any pre-existing logs will remain and can safely be removed.

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mydbsync.com/cloud-replication-main/additional-configuration-settings/how-to-disable-stdout-and-stderr-logging-on-windows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
