I'm trying to create a logger that will write the queries LINQ executes to the page formatted with the great javascript library SyntaxHighlighter.
For that, I've set the DataContext's Log property to my custom logger, which is working well.
Now I just need to get the current Controller object (outside the controller execution context) so I can set some ViewData with what needs to be outputted.
Any suggestions?