Download the SendGrid NuGet Package and the SendGridEmail NuGet Package
Install-Package Serilog.Sinks.SendGridEmail
Create an Instance of the SendGridClient (SendGrid namespace)
varclient=new SendGridClient("Your Send Grid API Key");
Create an EmailConnectionInfo (Serilog.Sinks.Email namespace)
varemailConnectionInfo=new EmailConnectionInfo
{EmailSubject="Application Error",FromEmail="Your From Email",ToEmail="Your To Email",SendGridClient=client,FromName="Your Friendly From Name"};
Create your own customized Serilog logger, and then include the .WriteTo.Email extension, just like with the Serilog.Sinks.Email NuGet package.