Huge Apple Mail Logs (Connection Logging Enabled)

I was doing some routine cleanup of my HDD, when I noticed some huge log files in ~/Library/Containers/com.apple.mail/Data/Library/Logs/Mail.

Where do I toggle those log files off and on?


In the Window menu, there is the Connection Doctor, which has a checkbox, showing the toggle to enable / disable logging.

Connection Doctor

You can also see at a glance in the menubar of the main Mail window, if it is enabled:

menubar