[Mono-bugs] [Bug 81296][Min] Changed - System.Diagnostics configuration sometimes doesn't work

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon May 7 23:52:49 EDT 2007

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by atsushi at ximian.com.


--- shadow/81296	2007-05-07 19:15:46.000000000 -0400
+++ shadow/81296.tmp.17793	2007-05-07 23:52:49.000000000 -0400
@@ -203,6 +203,17 @@
 log files must be writable even if there was another logger.
 ------- Additional Comments From noix at sphere.pl  2007-05-07 19:15 -------
 I tried this patch and now I have another problem:
 I added a "Trace.WriteLine("aaa");" line to the end of SwitchTest.cs.
 "aaa" is outputted to stdout, but _not_ to log.log (it should, right?)
+------- Additional Comments From atsushi at ximian.com  2007-05-07 23:52 -------
+For console output, you added ConsoleTraceListener thus there would be
+nothing strange there.
+For file output, .NET does not output logs to log.log either. I guess
+that is because Trace.WriteLine() is ignored when LogLevel is Error.
+Though I also tried Trace.TraceError() which did not record the line
+either ... am no trace expert so I dunno why here.

More information about the mono-bugs mailing list