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.

Remarks

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

Example

The following code example enables logging of usage analysis processing.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security