Size concious method for logging in C#
<p>I have a program that report exceptions to my server. I'd like to also send a complete log of the current session when the exception happens. Since this is a bug report, I'd like to condense it to a tidy little datastream with one or two characters per action. Examples of actions are things like: Clicks File Menu, Opens new spreadsheet, saves current workspace. One method might be to make a key where say each letter in the alphabet represents a particular action, then decode it on my server. This might be problematic if I want to add strings to the log though. (Example: Opens File "example.txt") Is there perhaps a more object oriented approach to this that doesn't sacrifice size and automates the encoding/decoding? I'm just brainstorming here so any suggestions or recommendations are most welcome.
Thanks!</p>
