SP.ULS.enabled Property
Applies to: SharePoint Foundation 2010
Gets or sets a value that indicates whether the Unified Logging Service (ULS) is enabled.
var value = SP.ULS.get_enabled();
SP.ULS.set_enabled(value);
Property Value
Type: Boolean
true if the ULS is enabled; otherwise, false.