As promised, the transcript recording plugin for Parchment has now been published. As the player is playing the game, the plugin sends the transcript to the server where it's saved to a database. The author can then later view the saved transcripts or use the information in the database to calculate statistics.
The plugin saves more than just plain text: it preserves text formatting and saves status lines as well, so the transcripts look (almost) the same as the actual game. (See this example of Bronze with status lines, colors and text formatting. Note that Parchment uses small caps in place of bold text.) The saved transcripts can be viewed with or without the status lines. In addition when the game waits for a single keypress, non-alphabet characters like enter, space and arrow keys are marked in the transcript.
There's a live demo with a transcript viewer available. Games played in the demo installation can be seen in the viewer.
The plugin and accompanying tools can be downloaded from Google Code where you'll also find installation instructions. Only Z-machine is supported at the moment, Glulx support will be added later.
Thank you, I have recently been searching for information about this topic for ages and yours is the best I have discovered so far.