LoggerBaseStartNewActivity Method (String, Object) |
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 activityNameFormat,
params Object[] args
)
Public Overridable Function StartNewActivity (
activityNameFormat As String,
ParamArray args As Object()
) As ActivityScope
Parameters
- activityNameFormat
- Type: SystemString
A format string that contains zero or more format items,
which correspond to objects in the args array. - args
- Type: SystemObject
An object array containing zero or more objects to format.
Return Value
Type:
ActivityScopeActivity scope
Examples Logger log = ...
using(log.StartNewActivity("Some Interesting Activity"))
{
}
See Also