Skip to content

Commit

Permalink
SEQ: fix event type and implement properties (#119)
Browse files Browse the repository at this point in the history
* SEQ: fix event level

* SEQ: implement Properties
  • Loading branch information
gahujipo authored Oct 6, 2021
1 parent cfd09d6 commit 5cbe86b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Logging/targets/Seq.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

$Body = @{
"@t" = $Log.TimestampUtc
"@l" = $Configuration.Level
"@l" = $Log.Level.substring(0,1).toupper()+$Log.Level.substring(1).tolower()
"@m" = $Log.Message
"@mt" = $Log.RawMessage
}
Expand All @@ -26,6 +26,11 @@

$Body += $Log

if($null -ne $Configuration.Properties)
{
$Body += $Configuration.Properties
}

if ($Configuration.ApiKey) {
$Url = '{0}/api/events/raw?clef&apiKey={1}' -f $Configuration.Url, $Configuration.ApiKey
}
Expand Down

0 comments on commit 5cbe86b

Please sign in to comment.