I need a detailed/step by step guide for this. I have read the brief guide (example here) and downloaded the sample code, but I still can't figure out how to use Nlog to log to CloudWatch.
- As soon as I put in the target in NLog.config, , Intellisense tells me that the name, type, logGroup, region attributes are not declared
- What NuGet packages do I need to install? From what I can tell, Nlog and AWSSDK.CloudWatchLogs only. Am I right?
- Do I still need to perform the configuration with code, or is just setting the NLog.config file enough? I get the feeling that I will to do both.
(Edit : 4. Where do I specify the AccessKey/SecretKey/credential, and the logStream? Figured out the stored credential and logStream cannot be changed yet. It always uses the first one)
When I tried to run an example code to write the log, I get the error that the AWSTarget is not found/defined. I have spent over a day on trying to figure this out, and I don't think it is that difficult so I must be doing something wrong. Please help! Thank you.