I'm working on a vim 'logging' plugin. I'm attempting to hook any calls to 'source', 'echo', 'echom', 'echoerr'. AFAIK, the way that you typically execute arbitrary code on 'events' is through the use of an autocmd(grp) with an autocmd-event - however it doesn't appear to be possible to hook any of the those commands through this method.
Any suggestions how else this might be possible?
Edit:
I'm currently playing around with this a little and shoved what I'm working on into a gist here: