Seq.App.Sg.Email
2.1.0
dotnet add package Seq.App.Sg.Email --version 2.1.0
NuGet\Install-Package Seq.App.Sg.Email -Version 2.1.0
<PackageReference Include="Seq.App.Sg.Email" Version="2.1.0" />
paket add Seq.App.Sg.Email --version 2.1.0
#r "nuget: Seq.App.Sg.Email, 2.1.0"
// Install Seq.App.Sg.Email as a Cake Addin
#addin nuget:?package=Seq.App.Sg.Email&version=2.1.0
// Install Seq.App.Sg.Email as a Cake Tool
#tool nuget:?package=Seq.App.Sg.Email&version=2.1.0
Seq.App.Sg.Email
HTML email templates
The app uses Handlebars.Net for email templating. Check out the Handlebars Guide for information on the Handlebars syntax.
Event types and properties
All templates can access the following special properties:
$DateTimeFormat
— the date/time format string defined in the app's settings$EventType
— the numeric event type assigned to the event$EventUri
— a link to the event in the Seq UI (not valid for alerts)$Exception
— the exception associated with the event, if any$Id
— the Seq event id$Instance
— the Seq server's instance name, if any$Level
— the event's level as a string$LocalTimestamp
— the timestamp of the event, in the server's time zone (deprecated)$Message
— the event's fully-rendered message$MessageTemplate
— the event's message template$Properties
— a dictionary containing all first-class event properties (see below)$ServerUri
— the Seq server's base URL$TimeZoneName
— the time zone name defined in the app's settings$UtcTimestamp
— the timestamp of the event
The event's first-class properties do not use prefixed $
names, so if an event carries a RequestId
property, this is accessed in the template as {{RequestId}}
, not {{$RequestId}}
.
Notifications for Alerts can use the properties listed in the Seq documentation.
Built-in helper functions
The app makes the following helper functions available in templates.
Name | Description | Example usage |
---|---|---|
datetime |
Format a date time, optionally specifying a time zone | {{datetime $SliceStart 'o' 'Australia/Brisbane'}} |
if_eq |
Compare two values for equality and optionally execute a specified block | {{#if_eq $Level 'Error'}} Oops! {{/if_eq}} |
pretty |
Pretty-print a value, converting arrays and objects to JSON | {{pretty Results}} |
substring |
Compute a substring given start index and optional length | {{substring Uri 0 5}} |
Helpers are defined here.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Newtonsoft.Json (>= 13.0.3)
- Seq.Apps (>= 2021.4.0)
- Serilog (>= 3.1.1)
- System.Security.Cryptography.Pkcs (>= 6.0.3)
-
net6.0
- Newtonsoft.Json (>= 13.0.3)
- Seq.Apps (>= 2021.4.0)
- Serilog (>= 3.1.1)
- System.Security.Cryptography.Pkcs (>= 6.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.