tanrr / Tanrr.VAPlugin.BMSRadio

VoiceAttack Plugin for BMS Radio Menus
GNU General Public License v3.0
2 stars 1 forks source link

Log to file as well as to VoiceAttack #6

Open tanrr opened 1 year ago

tanrr commented 1 year ago

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.

tanrr commented 1 year ago

Folder to write to? Probably a Logs subfolder of the plugin's folder would be best.

tanrr commented 1 year ago

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.

tanrr commented 1 year ago

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.