MaxLogFileSize Parameter (Connect-SFTP Cmdlet)
A string specifying the maximum size in bytes for a log file (for example, 10 MB).
Connect-SFTP -MaxLogFileSize string
When the limit is hit, a new log is created in the same folder with the date and time appended to the end. The default limit is 100 MB. Values lower than 100 kB will use 100 kB as the value instead.
Adjust the maximum number of logfiles generated with MaxLogFileCount.