Partager via


Logger Constructor

Definition

Constructor. Takes the delegates for the various logging operations as input.

public Logger (Action<string> writeWarning, Action<string> writeDebug, Action<string> writeVerbose, Action<System.Management.Automation.ErrorRecord> throwTerminatingError);
new Microsoft.Azure.Commands.RecoveryServices.Logger : Action<string> * Action<string> * Action<string> * Action<System.Management.Automation.ErrorRecord> -> Microsoft.Azure.Commands.RecoveryServices.Logger
Public Sub New (writeWarning As Action(Of String), writeDebug As Action(Of String), writeVerbose As Action(Of String), throwTerminatingError As Action(Of ErrorRecord))

Parameters

writeWarning
Action<String>

Delegate to write warnings

writeDebug
Action<String>

Delegate to write debug messages

writeVerbose
Action<String>

Delegate to write verbose messages

throwTerminatingError
Action<ErrorRecord>

Delegate to throw terminating errors

Applies to