Skip to content

Conversation

@daxian-dbw
Copy link
Member

PR Summary

Add basic logging for error cases in the Azure agent.

  • Use Serilog as it supports file logging. I considered Microsoft.Extension.Logging which has built-in logging provider for Event Source, but decided to not use it because it's easier to share a file log for diagnosis purposes.
  • The logging is configured to be rolling over by day, and it uses async writing to the log file.
  • The logging enabled so far is error only, but we can add more information/debug loggings for better view of the code operation.
  • We will need to allow a user to disable logging in the agent's configuration file. This is not done in this PR.

@daxian-dbw daxian-dbw merged commit 9bb9f8a into PowerShell:main Oct 22, 2024
4 checks passed
@daxian-dbw daxian-dbw deleted the logging branch October 22, 2024 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant