Cmdlet.WriteCommandDetail(String) Cmdlet.WriteCommandDetail(String) Cmdlet.WriteCommandDetail(String) Method

Definition

Write text into pipeline execution log.

public void WriteCommandDetail (string text);
member this.WriteCommandDetail : string -> unit
Public Sub WriteCommandDetail (text As String)
Parameters
text
String String String

text to be written to log

Exceptions

The pipeline has already been terminated, or was terminated during the execution of this method. The Cmdlet should generally just allow PipelineStoppedException to percolate up to the caller of ProcessRecord etc.

Not permitted at this time or from this thread. WriteWarning may only be called during a call to this Cmdlet's implementation of ProcessRecord, BeginProcessing or EndProcessing, and only from that thread.

Remarks

 Use WriteCommandDetail to write important information about cmdlet execution to
 pipeline execution log.

 If LogPipelineExecutionDetail is turned on, this information will be written
 to monad log under log category "Pipeline execution detail"

Applies to

See Also