你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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