Skip to content

sdolier/NLog.Targets.AmazonSES

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amazon SES Target for NLog

Amazon SES Target for NLog 2.0 allows you to send log messages through the Amazon Simple Email Service.

Suites .net applications hosted in Amazon EC2.

Requirements

  1. Amazon AWS account credentials
  2. Amazon Simple Email Service enabled with a verified sender emaill address

Configuration

Include NLog.Targets.AmazonSES.dll to your project and add NLog.Targets.AmazonSES as an extension in your NLog.config.

<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      internalLogToConsole="true"
      internalLogLevel="Debug">

  <extensions>
    <add assembly="NLog.Targets.AmazonSES"/>
  </extensions>

  <targets>
    <!-- Log individual messages through Amazon SES -->
    <target name="ses" xsi:type="SESTarget"
            awsAccessKey="Paste AWS Access Key here"
            awsSecretKey="Paste AWS Security Key here"
            from="[email protected]"
            to="[email protected]"
            subject="Application error"
            layout="${time} - ${level} - ${message}"/>
  </targets>

  <rules>
    <logger name="*" minlevel="Error" writeTo="ses" />
  </rules>
</nlog>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages