c# - Configuring CloudWatch as a target for NLog -
i have been trying set cloudwatch target nlog framework in .net application. haven't mentioned on documentation this.
this 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 sample project says. have set aws credentials in environment variables.
i have created loggroup in cloud watch
wiki
Comments
Post a Comment