Click or drag to resize

LoggerBaseStartNewActivity Method (String)

Convenient method that returns new activity scope with specified name.

Namespace:  Atalasoft.Shared.Diagnostics
Assembly:  Atalasoft.Shared (in Atalasoft.Shared.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public virtual ActivityScope StartNewActivity(
	string activityName
)

Parameters

activityName
Type: SystemString
New activity name.

Return Value

Type: ActivityScope
Activity scope
Examples
Logger log = ...
using(log.StartNewActivity("Some Interesting Activity"))
{ 
   // ...
}
See Also