I created a blog post about outputting debug messages to Process Monitor.