awslabs / kinesis-agent-windows

An extensible Windows agent that ingests logs and metrics to AWS services such as Kinesis Stream, Kinesis Firehose, CloudWatch Logs and CloudWatch.
Apache License 2.0
39 stars 22 forks source link

Configure logging after hosting configuration #25

Closed skumawat1984 closed 3 years ago

skumawat1984 commented 3 years ago

Description of changes: The UseWindowsService method adds logging to Windows Event Log, which is not desired by KinesisTap.

We need to re-configure logging after this function is called. The new ConfigureDefaultLogging overwrites the logging configuration (to using NLog).

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.