Open tanrr opened 1 year ago
Folder to write to? Probably a Logs subfolder of the plugin's folder would be best.
Can handle vaProxy.Events.LogEntryAdded() to get all logs written (including what plugin sends to VA). NOTE: Can't write any logs to VA our self in handler, and need to make sure that we're the active plugin before adding the logs to a file. Use vaProxy.Profile.Name() to check the name of the active profile.
Note that keeping a file handle/stream open means we have to release it if anything goes wrong, and when VoiceAttack shuts down... Might not be worth it.
No logging to a file is currently being done.
Add logging to file (as an option that is off by default) to allow users to send bug reports with simple logs.