EZLog icon indicating copy to clipboard operation
EZLog copied to clipboard

Support for EventLog entry

Open lazywinadmin opened this issue 8 years ago • 5 comments

Could be nice to have an entry added in the eventlog if a specific Parameter is used

Write-EZlog -message "END" -Category INF -EventLog -eventID 1200

lazywinadmin avatar Nov 24 '16 23:11 lazywinadmin

I'm not sure to understand correctly what you need. Could you please elaborate?

apetitjean avatar Nov 25 '16 17:11 apetitjean

IMO, it's the possibility to add the entry to eventlog as well as the possibility to add it to the console or the file.

fabiendibot avatar Nov 25 '16 20:11 fabiendibot

Yep, in addition to add a new line to your log, add a entry to the EventLog. I had some case in my work where I wanted to do that. The EventLog entry would contains metadata of my context as well.

This is a suggestion.

lazywinadmin avatar Nov 26 '16 04:11 lazywinadmin

The suggestion sounds interesting but seems be not easy to implement. Indeed in which Windows Event Log write the EZLogs event logs?

apetitjean avatar Feb 03 '17 14:02 apetitjean

@apetitjean Application Log by default ? Make EventID and EventLog mandatory in their ParameterSetName.

This would be useful if you want a monitoring tool to capture some specific EventID

lazywinadmin avatar Feb 03 '17 23:02 lazywinadmin