Open ypid-geberit opened 5 years ago
@ypid-geberit, Thank you for the feedback and sharing your solution. especially the view on logging is very usefull. Rewriting the framework is still in the pipeline but I get distracted all the time by other projects and work. Momentarily, I am improving the ConvertTo-Expression cmdlet which is part of the (object) logging, after that I will try to give the log framework project a boost again and investigate the suggestion to use the windows event log (which was actually also part of an earlier VBScript predecessor). I like although to keep the direction in my own hands as I am not always available but I am open for suggestions and other ideas.
Then my input came probably at a good time while you are still thinking of a design and before the implementation :) I am not in an urge to change our way of logging soon so the stage is yours and I will watch closely and give feedback and potentially PRs. Thanks!
Hi @iRon7
Very well designed library. I somehow missed it in my initial search for a well done logging solution so I designed my own. I have a GNU/Linux and Python background and am involved with central logging using Elasticsearch, so my focus was not so much on writing a log file but instead writing to the Windows Eventlog with the reason being to collect the Eventlog and store/index it centrally.
Adding support for the Eventlog might also be interesting for you. In #5 you wrote that you are already working on a redesign.
Also, I share your opinion that MS Shell/M$Shell is lacking a proper logging framework.
My solution: https://github.com/geberit/elastic-helpers/blob/master/logging_examples/logging.ps1
Our view on logging: https://github.com/geberit/elastic-helpers/blob/master/Logging%20best%20practices.md
Maybe we can combine forces somehow. Let me know what you think.