MaxLogFileSize Parameter (Connect-FTP Cmdlet)
Specifies the maximum size of a single log file in bytes. For example, '10 MB'. When the file reaches the limit, the provider creates a new log file with the date and time appended to the name.
Syntax
Connect-FTP -MaxLogFileSize string
Data Type
cstr
Default Value
"100MB"
Remarks
For values lower than 100 KB, the cmdlet uses 100 KB as the minimum allowable size.
To control the total number of log files retained, use the MaxLogFileCount property in conjunction with this property. Together, these properties allow you to manage the size and retention of log files effectively.