Logging to the Application Event Log is fine, but in some cases folks may want to log to a custom event log they set up. We should provide an option to pass the event log through the registry.
The relevant code for setting event log is here.
Notes for scoping:
- This will not create the event log, that must be handled separately.
- The way to set this is a rudimentary change to the registry service startup call in ImagePath of the registry value at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\puppet.
Eventually this could be an option passed during install/upgrade that will set the property automatically. That would scope a bit higher.