Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
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.
You can also see at a glance in the menubar of the main Mail window, if it is enabled: