diff options
author | Jonathan Pryor <jpryor@novell.com> | 2002-06-16 23:49:45 +0400 |
---|---|---|
committer | Jonathan Pryor <jpryor@novell.com> | 2002-06-16 23:49:45 +0400 |
commit | 609c2de3e6f6b94460637e5175b0bdbb6692c997 (patch) | |
tree | 2301cd6dc95e8fb2538ee1623efb38bbf513f3de /mcs/class/System/System.Diagnostics/TraceListener.cs | |
parent | 9a16ca4210018c668b82c4d5771bf8cdf42f1349 (diff) |
* ICollectData.cs: Implemented
* TraceImpl.cs: Setting IndentLevel, IndentSize should change the
corresponding properties on all current TraceListeners.
Also, to answer the FIXME message: Yes, the properties in TraceListener
need to be [ThreadStatic] as well.
* TraceListenerCollection.cs: When adding a TraceListener, the TraceListener
should have its properties set to the current TraceImpl property values.
* TraceListener.cs: Make indentSize, lndentLevel [ThreadStatic].
svn path=/trunk/mcs/; revision=5291
Diffstat (limited to 'mcs/class/System/System.Diagnostics/TraceListener.cs')
-rw-r--r-- | mcs/class/System/System.Diagnostics/TraceListener.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mcs/class/System/System.Diagnostics/TraceListener.cs b/mcs/class/System/System.Diagnostics/TraceListener.cs index 4f4fa922dd5..b32ced8eb1b 100644 --- a/mcs/class/System/System.Diagnostics/TraceListener.cs +++ b/mcs/class/System/System.Diagnostics/TraceListener.cs @@ -17,8 +17,12 @@ namespace System.Diagnostics { public abstract class TraceListener : MarshalByRefObject, IDisposable { + [ThreadStatic] private int indentLevel = 0; + + [ThreadStatic] private int indentSize = 4; + private string name = null; private bool needIndent = false; |