Write-Log

SYNOPSIS
Provides an easy interface for logging

SYNTAX
Write-Log [-Message <String>] [-LogLevel <Object>] <CommonParameters>


DESCRIPTION
Provides an easy interfaces for logging by providing the message and log level.
This will use the default logger.


PARAMETERS
-Message <String>
The Message string to log

Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters?

-LogLevel <Object>
'DEBUG','INFO','WARN','ERROR'

Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters?

-------------------------- EXAMPLE 1 --------------------------

PS C:\>Write-Log -Message 'Hello World' -LogLevel 'DEBUG'

Last edited Mar 30, 2011 at 3:56 PM by qawarrior, version 1

Comments

No comments yet.