Logger.OpenActivity Method (String) |
Opens a custom activity with an optional description, but without parameters.
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public LogActivity OpenActivity( string text = null )
Parameters
- text (Optional)
- Type: System.String
A description of the activity, or null to use the caller method name as the activity description.
Return Value
Type: LogActivityA Logger representing the new activity.
The activity must be closed using SetSuccess(String), SetFailure(String) or SetException(Exception).