[Mono-list] Diagnostic Messages

Martin Baulig martin@gnome.org
27 May 2002 21:52:00 +0200

Paul Trunley <paul@trunley.org> writes:

> 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. 

Won't this get you killed by your sysadmin if you're a "normal" user and
producing thousands of lines of debugging messages in /var/log/debug ?

The problem with syslog is that it can only be configured by root - as a
normal user you can only send messages to the system log, but you have no
control over where they go.

Martin Baulig