Click or drag to resize
IActivityLogServiceLog Method
Logs given activity. Registered IActivityLogFilter are checked, activity is further processed only if all filters allow it. Then IActivityInfo is created and activityInitializer is called. Afterwards all registered modifiers are applied to the IActivityInfo. Finally the IActivityInfo is validated by registered IActivityLogValidator. Activity is stored only if it is valid. After the activity is stored, two events are fired. ActivityProcessedInLogService which should be used to hook on and also ActivityLogged which is there due to compatibility reasons (should not be used).

Namespace: CMS.Activities
Assembly: CMS.Activities (in CMS.Activities.dll) Version: 10.0.0
Syntax
C#
void Log(
	IActivityInitializer activityInitializer,
	HttpRequestBase currentRequest,
	bool loggingDisabledInAdministration = true
)

Parameters

activityInitializer
Type: CMS.ActivitiesIActivityInitializer
Activity initializer used to initialize logged activity.
currentRequest
Type: System.WebHttpRequestBase
Current request
loggingDisabledInAdministration (Optional)
Type: SystemBoolean
True if activities should not be logged in administration.
See Also