I feel like I've hit a wall. I'm working on a web application that uses the Saxon library to perform XSLT transformations. The application used to be a console application that simply printed output to the console, but then, we decided that we wanted to control the application from the web.
I wrote a custom TextWriter class that outputs to the web page and used Console.SetOut and Console.SetError to direct my Console output to the web page.
However, Saxon is using some sort of Java compatibility library which doesn't seem to be affected by Console.SetOut, so when I run the application on the web, internal Saxon errors don't appear on the web page.
The short version of my question is: suppose that I call Console.SetOut to change the location that console text is output to and it doesn't work. What then?