[Mono-bugs] [Bug 600458] Debug.Assert needs listeners setup

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Apr 28 10:45:20 EDT 2010



Jonathan Pryor <jpryor at novell.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |jpryor at novell.com
         Resolution|                            |INVALID

--- Comment #2 from Jonathan Pryor <jpryor at novell.com> 2010-04-28 14:45:19 UTC ---
NET doesn't add a ConsoleTraceListener by default, so doing so wouldn't be

Furthermore, Mono DOES provide a DefaultTraceListener (as .NET does).  It's
just that by default the DefaultTraceListener doesn't generate any output. 
(This is also to mimic .NET, as .NET's DefaultTraceListener writes output via
OutputDebugString(), which has no Unix equivalent; key point being that .NET's
DefaultTraceListener doesn't write to stdout/stderr, but that's all that's
readily available on Unix.)

To configure Mono's DefaultTraceListener to write to stdout, set the
MONO_TRACE_LISTENER environment variable, e.g.

    export MONO_TRACE_LISTENER=Console.Out

See also the documentation at:


You can also add additional TraceListeners via your .exe.config file, to e.g.
log messages to a file.

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list