Browse Source

IndentLevel and IndentSize shouldn't be hardcoded; they should be set to
whatever TraceImpl is using (which in turn may have been set by the .config
file, so we should get the user-specified values in added listeners).

svn path=/trunk/mcs/; revision=9787

Jonathan Pryor 23 years ago
parent
commit
1f73687f90
1 changed files with 2 additions and 2 deletions
  1. 2 2
      mcs/class/System/System.Diagnostics/TraceListenerCollection.cs

+ 2 - 2
mcs/class/System/System.Diagnostics/TraceListenerCollection.cs

@@ -80,8 +80,8 @@ namespace System.Diagnostics {
 
 		private void InitializeListener (TraceListener listener)
 		{
-			listener.IndentLevel = 0;
-			listener.IndentSize = 4;
+			listener.IndentLevel = TraceImpl.IndentLevel;
+			listener.IndentSize = TraceImpl.IndentSize;
 		}
 
 		private void InitializeRange (IList listeners)