Skip to content

New-PodeLogW3CInfo

SYNOPSIS

Creates a new Pode Log W3C Info object.

SYNTAX

New-PodeLogW3CInfo [-Fields] <Hashtable[]> [[-Version] <Version>] [-NoLogHeader]
 [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

Creates a new Pode Log W3C Info object with the specified fields, version, and log header settings.

EXAMPLES

EXAMPLE 1

$fields = @(
    Add-PodeLogW3CField -Name 'date'
    Add-PodeLogW3CField -Name 'time'
    Add-PodeLogW3CField -Name 'c-ip'
    Add-PodeLogW3CField -Name 'cs-method'
    Add-PodeLogW3CField -Name 'cs-uri-stem'
    Add-PodeLogW3CCustomField -Name 'custom-field' -Type 'Request'
)
$info = New-PodeLogW3CInfo -Fields $fields

PARAMETERS

-Fields

The fields to include in the W3C log, created using Add-PodeLogW3CField or Add-PodeLogW3CCustomField.

Type: Hashtable[]
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-NoLogHeader

If supplied, the W3C log will not include the log header.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Version

The version of the W3C log format. (Default: 1.0)

Type: Version
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: [version]'1.0'
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

System.Collections.Hashtable

NOTES