你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Logger Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |