| external help file | ChocoLogParse-help.xml |
|---|---|
| Module Name | ChocoLogParse |
| online version | |
| schema | 2.0.0 |
Grab a single session from the latest log file. Defaults to last exection.
Get-ChocoLogEntry [[-Path] <String[]>] [[-Filter] <String>] [[-PatternLayout] <String>] [-Report] [-NoColor]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Reads the latest log file and grabs the last session
Get-ChocoLogEntry
Grabs the laste entry from the latest log
The log path you want to parse. This will default to the latest local log. This can be a directory of logs.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: "$($env:ChocolateyInstall)\logs\"
Accept pipeline input: False
Accept wildcard characters: FalseThe filter passed to Get Child Item. Default to 'chocolatey*.log.'
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: Chocolatey*.log
Accept pipeline input: False
Accept wildcard characters: FalseThe log4net pattern layout used to parse the log. It is very unlikely that you need to supply this. The code expects pattern names: time, session, level, and message.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: %date %thread [%-5level] - %message
Accept pipeline input: False
Accept wildcard characters: FalseThis changes the output to be more friendly for reporting
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseDisables colored output in the formatter. When specified, the output will be displayed without ANSI color codes.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Works for Windows PowerShell and PowerShell Core (e.g. 7).