I would like to ensure that all is logged easily. The new 1.5 loggin capability is good.
A suggestion for making it more generic could be this:
if (CustomerActivityManager.GetActivityTypeBySystemName("GenerateFroogle")==null)
{
CustomerActivityManager.InsertActivityType("GenerateFroogle",
"Occurs whenever a froogle feed is sucessfully generated",
true);
}
CustomerActivityManager.InsertActivity("GenerateFroogle", result);
Maybe even integrate it as optional parameters in InsertActivity
with params:
string SystemKeyWord
string Comment
bool InsertActivityLogTypeIfNotFound
string ActivityLogTypeName
string ActivityLogTypeDescription