> This page is for TWS API.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://ibkrcampus.com/docs/llms.txt.

# Exporting Logs

1. In TWS, navigate to Help menu >> Troubleshooting >> Diagnostics >> "API Logs" or "TWS Logs".
2. In IBG, both "API Logs" and "Gateway Logs" are accessible directly from the File menu.
3. Click "Export Today Logs…" to decrypt the logs and save them in plaintext (logs are stored encrypted on your local machine)