Self hosted WCF console output from service

Posted by user989056 on Stack Overflow See other posts from Stack Overflow or by user989056
Published on 2012-03-23T10:25:41Z Indexed on 2012/03/23 17:29 UTC
Read the original article Hit count: 226

Filed under:
|
|
|

quick one:

Is it possible to capture the output stream of a WCF service that is hosted via ServiceHost ( self hosted service) ? I have methods within my WCF service that output useful debugging information, is it possible to send these to it's host's console output?

Edit:

It appears that I have made an obvious blunder - I was using Debug instead of Console. It is possible to output to the console by using the standard Console output commands in your WCF service class. I have marked the answer that I have found the most useful.

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET