-
Notifications
You must be signed in to change notification settings - Fork 0
Send SeqEvent
Send an event to a Seq server.
Send-SeqEvent [[-Message] <String>] [-Properties] <Object> [-Level <String>] [-Server <Uri>] [-ApiKey <String>]
[-LiteralMessage] [-ProgressAction <ActionPreference>] [<CommonParameters>]
{{ Fill in the Description }}
Send-SeqEvent 'Hello from PowerShell' -Server http://my-seq -LiteralMessage
Send-SeqEvent 'Event: {User} on {Machine}' @{ User = $env:UserName; Machine = $env:ComputerName } -Server http://my-seq
Send-SeqEvent -Properties @{ Message = $Error[0].Exception.Message } -Level Error -Server http://my-seq
The text to use as the log message, a Seq template unless -LiteralMessage is present. By default, the value of the Message property will be used.
Type: String
Parameter Sets: (All)
Aliases: Text
Required: False
Position: 1
Default value: {Message}
Accept pipeline input: False
Accept wildcard characters: FalseLogging properties to record in Seq, as an OrderedDictionary, Hashtable, DataRow, or any object with properties to use.
Type: Object
Parameter Sets: (All)
Aliases: Parameters
Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: FalseThe type of event to record. Information by default.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: Information
Accept pipeline input: False
Accept wildcard characters: FalseThe URL of the Seq server.
Type: Uri
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe Seq API key to use.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseWhen present, indicates the Message parameter is to be used verbatim, not as a Seq template.
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.