LoggingEnabled Property

The LoggingEnabled property of the SPUsageSettings class gets or sets a Boolean value that specifies whether usage analysis logging is enabled.

Property Value

true if usage analysis logging is enabled; otherwise, false.


Setting the LoggingEnabled property requires that the Update method be called for changes to take effect in the database.


The following code example enables logging of usage analysis processing.


Platforms: Microsoft Windows Server 2003

Security: Code Access Security