I have been trying to set cloudwatch as a target to my Nlog framework in .Net application. They haven't mentioned much on their documentation about this.
This is my Nlog.config file
<?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"
throwExceptions="true">
<targets>
<target name="aws" type="AWSTarget" logGroup="NLog.ConfigExample" region="us-east-1"/>
<target name="logfile" xsi:type="Console" layout="${callsite} ${message}"/>
</targets>
<rules>
<logger name="*" minlevel="Info" writeTo="logfile,aws" />
</rules
</nlog>
Nothing major just as their sample project says. I have already set AWS credentials in my environment variables.
I have already created a logGroup in cloud watch as well