I don't see how I could use delegates for this. I use delegates to call different functions from the same place (when passing functions as arguments for example), but here, I would just make a call to the delegate instead of a call to log(), so if I forget to call the delegate in one of my method, log() won't be called either.. or am I missing something ?
As for HTTP handler, I'm running the application on windows, it's not a web application, so I'm not sure I can use that..