Huge Apple Mail Logs (Connection Logging Enabled)
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: