ironmansoftware / powershell-universal

Issue tracker for PowerShell Universal
https://powershelluniversal.com
36 stars 4 forks source link

Consistent Logging #2110

Closed adamdriscoll closed 1 year ago

adamdriscoll commented 1 year ago

Summary of the new feature / enhancement

We should provide consistent logging across PSU. There are several different places logs are stored:

Instead of all these different places, we should use a single system that stores logs consistently. The reason for doing this would be that we could:

We should also consider enriching logs with info about the current action:

Considerations:

Proposed technical implementation details (optional)

No response

Viajaz commented 1 year ago

I was actually going to make a ticket similar to this too.

I'm also looking for the following for scripts, API endpoints and, especially, dashboards:

JoriPS1 commented 1 year ago

I think is a great enhancement @adamdriscoll. Bonus points if the logging includes a function that we can use to log custom functions/include custom data in the log. Would love to replace my custom logging functions (technical debt) with something made with care.

I think in an ideal world for me, the logs would be stored "locally", but also be forwarded to a Azure Log Analytics Workspace.

Omzig commented 1 year ago

these are related:

adamdriscoll commented 1 year ago

Just an update on this issue. We will be releasing a more comprehensive version in beta2. It will include the following:

I'll close this issue and open some other smaller ones that I still want to implement. I will link them here.