diff options
author | Jonathan Pryor <jpryor@novell.com> | 2002-12-20 02:36:00 +0300 |
---|---|---|
committer | Jonathan Pryor <jpryor@novell.com> | 2002-12-20 02:36:00 +0300 |
commit | 1eb5d4634b15eda225b38bbe78cc93abb771fbe9 (patch) | |
tree | 45ab60ad04ccd2a8ff0028601e1bef891d662943 /mcs/class/System/System.Diagnostics/TraceListener.cs | |
parent | 63c75e1f0e6a0d286c3c2ef0ebcf758bf44a369b (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.cs | 2 |
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 ("") { |