[Mono-list] Diagnostic Messages

Paul Trunley paul@trunley.org
Sun, 26 May 2002 08:03:49 -0700


On Sunday 26 May 2002 06:17 am, Jonathan Pryor wrote:
> Apparently some clarification is in order.
>
> On Windows, the `DefaultTraceListener' uses `OutputDebugString' to print
> messages.  This ensures that no messages will be displayed on the
> console unless an additional `TraceListener' is added that sends output
> to the console.  This is a rather nice feature, in that I can leave
> trace messages in the program without having them be seen by the user.
>
> Linux/Unix, as far as I can tell, has no equivalent to
> `OutputDebugString'.  The console must be used instead (until someone
> tells me a better way to do it).

BSDs (and perhaps Linux, I don't know) have the syslog facility, that is 
probably the most appropriate equivalent.