[Mono-list] LAMESPEC?: System.Diagnostics.DiagnosticsConfigurationHandler

Pablo Baena pbaena@uol.com.ar
17 May 2003 10:42:15 +0000


--=-TztZ7AKcE7KKVncAvwpl
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

In Mono's
System.Diagnostics.DiagnosticsConfigurationHandler.AddTraceListeners (),
"name" and "type" are required. On the other hand, MSDN documentation
for System.Diagnostics.DefaultTraceListener says that:

<configuration>
<system.diagnostics>
    <trace autoflush="false" indentsize="4">
        <listeners>
           <remove
type="System.Diagnostics.DefaultTraceListener,System"/> 
        </listeners>
    </trace>
</system.diagnostics>
</configuration>

should remove the DefaultTraceListener (apparently without specifying
the name).

Thus, that sample .config file throws an exception on Mono.

I can fix this. Should I?

-- 
Pablo Baena <pbaena@uol.com.ar>

--=-TztZ7AKcE7KKVncAvwpl
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/1.1.10">
</HEAD>
<BODY>
In Mono's System.Diagnostics.DiagnosticsConfigurationHandler.AddTraceListeners (), &quot;name&quot; and &quot;type&quot; are required. On the other hand, MSDN documentation for System.Diagnostics.DefaultTraceListener says that:<BR>
<BR>
&lt;configuration&gt;<BR>
&lt;system.diagnostics&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;trace autoflush=&quot;false&quot; indentsize=&quot;4&quot;&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;listeners&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;remove type=&quot;System.Diagnostics.DefaultTraceListener,System&quot;/&gt; <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/listeners&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;/trace&gt;<BR>
&lt;/system.diagnostics&gt;<BR>
&lt;/configuration&gt;<BR>
<BR>
should remove the DefaultTraceListener (apparently without specifying the name).<BR>
<BR>
Thus, that sample .config file throws an exception on Mono.<BR>
<BR>
I can fix this. Should I?<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- <BR>
Pablo Baena &lt;<A HREF="mailto:pbaena@uol.com.ar">pbaena@uol.com.ar</A>&gt;
</TD>
</TR>
</TABLE>

</BODY>
</HTML>

--=-TztZ7AKcE7KKVncAvwpl--