Logging icon indicating copy to clipboard operation
Logging copied to clipboard

Initialize logging targets from configuration

Open EsOsO opened this issue 6 years ago • 3 comments

We could add a function that read a json file and configure targets, levels and format.

EsOsO avatar Apr 10 '19 07:04 EsOsO

I could implement this behavior by the end of this week.

tosoikea avatar May 06 '19 05:05 tosoikea

@EsOsO I added a simple initialization function based on .psd1 files (https://github.com/tosoikea/Logging/blob/initialization/Logging/public/Add-LoggingTargets.ps1). This should be more appropriate than .json as it supports the configuration of powershell specific value types in a simple fashion (e.g. DateTime). Looking forward to your feedback. :)

tosoikea avatar Feb 15 '21 16:02 tosoikea

Sorry, I completly missed your messages.

Love the implementation, you can merge with upstream.

Thank you

EsOsO avatar Mar 16 '21 13:03 EsOsO