< Back

Enable-PodeErrorLogging

Sat Jan 18, 2020 7:14 pm

NAME Enable-PodeErrorLogging



SYNOPSIS

Enables Error Logging using a supplied output method.





SYNTAX

Enable-PodeErrorLogging [-Method] <Hashtable> [[-Levels] <String[]>] [-Raw] [<CommonParameters>]





DESCRIPTION

Enables Error Logging using a supplied output method.





PARAMETERS

-Method <Hashtable>

The Method to use for output the log entry (From New-PodeLoggingMethod).



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Levels <String[]>

The Levels of errors that should be logged (default is Error).



Required? false

Position? 2

Default value @('Error')

Accept pipeline input? false

Accept wildcard characters? false



-Raw [<SwitchParameter>]

If supplied, the log item returned will be the raw Error item as a hashtable and not a string (for Custom

methods).



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



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



PS C:\\>New-PodeLoggingMethod -Terminal | Enable-PodeErrorLogging















RELATED LINKS