How to get the text sent to console output in an event or method
<p>I need to capture the event when my application is trying to write something on console.</p>

<pre><code>Console.WriteLine("Any text");
</code></pre>

<p>Is it possible to get the text sent to console output in an event or method?</p>
