The NumberLogFiles property of the SPUsageSettings class gets or sets the number of log files to use in usage analysis per virtual server.
A 32-bit unsigned integer that specifies the number of log files to use.
Setting the NumberLogFiles property requires that the Update method be called for changes to take effect in the database.
This property returns an ArgumentException exception if the number of log files is less than 1 or greater than the value specified by the MaxNumberLogFiles field.
The following code example uses the NumberLogFiles property to set the number of log files that are created.
Platforms: Microsoft Windows Server 2003
Security: Code Access Security