< Back

Enable-PodeRequestLogging

Sat Jan 18, 2020 7:14 pm

NAME Enable-PodeRequestLogging



SYNOPSIS

Enables Request Logging using a supplied output method.





SYNTAX

Enable-PodeRequestLogging [-Method] <Hashtable> [-Raw] [<CommonParameters>]





DESCRIPTION

Enables Request 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



-Raw [<SwitchParameter>]

If supplied, the log item returned will be the raw Request 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-PodeRequestLogging















RELATED LINKS