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. |