Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Pryor <jpryor@novell.com>2002-12-20 02:36:00 +0300
committerJonathan Pryor <jpryor@novell.com>2002-12-20 02:36:00 +0300
commit1eb5d4634b15eda225b38bbe78cc93abb771fbe9 (patch)
tree45ab60ad04ccd2a8ff0028601e1bef891d662943 /mcs/class/System/System.Diagnostics/TraceListener.cs
parent63c75e1f0e6a0d286c3c2ef0ebcf758bf44a369b (diff)
* TraceListener.cs: Make sure that indents are initially written. This allows
code that uses Trace.Indent() before a Trace.WriteLine() to be indented properly. * TraceImpl.cs: provide a static constructor to explicitly specify the ordering of initialization, in particular the ordering of TraceImpl.Listeners and the reading of the .config file (by accessing DiagnosticsConfiguration.Settings). This (hopefully) ensures that the Listeners collection is initialized before the .config file is read in, as the DiagnosticsConfigurationHandler will directly modify the listeners collection. The DiagnosticsConfigurationHandler assumes this so that it can <add/> and <remove/> trace listeners and set the logfile for the DefaultTraceListener. svn path=/trunk/mcs/; revision=9786
Diffstat (limited to 'mcs/class/System/System.Diagnostics/TraceListener.cs')
-rw-r--r--mcs/class/System/System.Diagnostics/TraceListener.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/System/System.Diagnostics/TraceListener.cs b/mcs/class/System/System.Diagnostics/TraceListener.cs
index b32ced8eb1b..577740a1761 100644
--- a/mcs/class/System/System.Diagnostics/TraceListener.cs
+++ b/mcs/class/System/System.Diagnostics/TraceListener.cs
@@ -24,7 +24,7 @@ namespace System.Diagnostics {
private int indentSize = 4;
private string name = null;
- private bool needIndent = false;
+ private bool needIndent = true;
protected TraceListener () : this ("")
{