Logger Class

Definition

Utility for logging. Uses PS logging underneath. Plan to add more functionality in the upcoming releases.

public class Logger
type Logger = class
Public Class Logger
Inheritance
Logger

Constructors

Logger(Action<String>, Action<String>, Action<String>, Action<ErrorRecord>)

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

Properties

Instance

Methods

ThrowTerminatingError(ErrorRecord)

Throws a terminating error. Must be executed on the same thread as the invoking cmdlet.

WriteDebug(String)

Writes debug message. Must be executed on the same thread as the invoking cmdlet.

WriteVerbose(String)

Writes verbose message. Must be executed on the same thread as the invoking cmdlet.

WriteWarning(String)

Writes warning message. Must be executed on the same thread as the invoking cmdlet.

Applies to