In .:
[mono.git] / mcs / class / System / System.Diagnostics / ChangeLog
1 2007-07-11  Ankit Jain  <jankit@novell.com>
2
3         * ProcessStartInfo.cs (WorkingDirectory.set): Don't set
4         working_directory to null.
5
6 2007-05-18  Atsushi Enomoto  <atsushi@ximian.com>
7
8         * TraceSourceInfo.cs : new class for storing configuration data.
9         * TraceSource.cs : TraceEventCache arguments should be null (they are
10           nullable). Use TraceSourceInfo above.
11         * DiagnosticsConfigurationHandler.cs : removed hack to store listeners
12           in named sources, not traceimpl. Create TraceSource objects from
13           configuration data.
14
15 2007-05-18  Marek Safar  <marek.safar@gmail.com>
16
17         * DiagnosticsConfigurationHandler.cs: Fixed 1.1 build.
18
19 2007-05-18  Atsushi Enomoto  <atsushi@ximian.com>
20
21         * XmlWriterTraceListener.cs : open file in shared r/w mode.
22         * DiagnosticsConfigurationHandler.cs : process <sharedListeners>
23           elements first, so that named listeners work fine.
24         * EventLogTraceListener.cs : added 2.0 stubs.
25         * CorrelationManager.cs : removed todo.
26
27 2007-05-18  Atsushi Enomoto  <atsushi@ximian.com>
28
29         * TraceListener.cs : in TraceTransfer(), use TraceEvent() (some
30           derived classes depend on this change).
31         * DelimitedListTraceListener.cs : implemented.
32
33 2007-05-18  Atsushi Enomoto  <atsushi@ximian.com>
34
35         * EventLogPermissionAccess.cs ProcessPriorityClass.cs
36           ProcessWindowStyle.cs ThreadWaitReason.cs TraceImpl.cs
37           Trace.cs ThreadPriorityLevel.cs EventLogEntryType.cs
38           PerformanceCounterPermissionAccess.cs PerformanceCounterType.cs
39           TraceListener.cs ThreadState.cs : cosmetic API fixes.
40         * SwitchAttribute.cs : implemented GetAll().
41
42 2007-05-17  Atsushi Enomoto  <atsushi@ximian.com>
43
44         * TraceOptions.cs : new enum.
45         * TraceListener.cs : support TraceOutputOptions. Fixed missing
46           NET_2_0 condition in TARGET_JVM section.
47         * TraceSwitch.cs, BooleanSwitch.cs :
48           Added missing constructors and OnValueChanged().
49         * Trace.cs, TraceImpl.cs :
50           Added CorrelationManager and UseGlobalLock.
51         * TraceEventCache.cs : initialize property values at construction.
52         * Switch.cs : added XmlIgnore on Attributes.
53
54 2007-05-15 Adar Wesley <adarw@mainsoft.com>
55
56         * Trace.cs: added missing method Refresh.
57
58 2007-05-14  Atsushi Enomoto  <atsushi@ximian.com>
59
60         * EventTypeFilter.cs
61           TraceFilter.cs
62           SourceFilter.cs
63           SwitchLevelAttribute.cs
64           DelimitedListTraceListener.cs
65           SwitchAttribute.cs : new files in 2.0.
66         * DiagnosticsConfigurationHandler.cs : partial support for named
67           shared listeners.
68         * XmlWriterTraceListener.cs : cosmetic corcompare fixes. Added
69           missing todos.
70         * TraceListener.cs : added missing 2.0 stuff. Implemented Filter.
71         * DefaultTraceListener.cs : trivial ComVisible fix.
72
73 2007-05-10  Atsushi Enomoto  <atsushi@ximian.com>
74
75         * TextWriterTraceListener.cs : open log file in readwrite share mode.
76           This fixes bug #81296.
77
78 2007-05-08 Igor Zelmanovich <igorz@mainsoft.com>
79
80         * TraceImpl.cs:
81         * TraceListener.cs:
82         for TARGET_JVM used Thread Local Storage istead 
83         Thread-Relative Static Fields 
84
85 2007-05-02  Jonathan Chambers  <joncham@gmail.com>
86
87         * Stopwatch.cs : Implement high performance stopwatch on windows.
88
89 2007-04-19  Atsushi Enomoto  <atsushi@ximian.com>
90
91         * XmlWriterTraceListener.cs : new file, implementated.
92         * TraceListener.cs : implemented 2.0 members.
93
94 2007-03-04  Vladimir Krasnov  <vlaimdirk@mainsoft.com>
95
96         * DiagnosticsConfigurationHandler.cs: removed configuration init in
97         TARGET_JVM since not supported
98
99 2007-02-02  Gert Driesen  <drieseng@users.sourceforge.net>
100
101         * EventLogImpl.cs: When no log name is specified, return zero-length
102         string for LogDisplayName.
103
104 2007-01-28 Ilya Kharmatsky <ilyak -at- mainsoft.com>
105
106         * TraceEventCache.jvm.cs: added as a stub class.
107
108 Tue Jan 23 17:19:13 CET 2007 Paolo Molaro <lupus@ximian.com>
109
110         * ProcessStartInfo.cs: put the fields in the order expected
111         by the runtime code.
112
113 2007-01-18  Atsushi Enomoto  <atsushi@ximian.com>
114
115         * Switch.cs : added missing .ctor(), Attributes, Value, 
116           GetSupportedAttributes() and OnValueChanged().
117         * DiagnosticsConfigurationHandler.cs : added some hacky handler for
118           new "sources" element. Don't wrap another ConfigurationException.
119         * TraceListener.cs : added missing trace methods.
120         * TraceSource.cs, SourceLevels.cs, CorrelationManager.cs,
121           TraceEventCache.cs, TraceEventType.cs, SourceSwitch.cs:
122           added missing 2.0 stuff, mostly just stubs.
123
124 2007-01-12  Miguel de Icaza  <miguel@novell.com>
125
126         * Trace.cs: Add a number of 2.0 overloads.
127
128 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
129
130         * Process.cs: Allow GetProcesses and GetProcessById overloads with 
131         machine name to work for local machine.
132
133 2006-12-29  Robert Jordan  <robertj@gmx.net>
134
135         * TraceImpl.cs (Assert): Include line numbers in the stack trace
136         emitted by Assert (). Fixes bug #80400.
137
138 Thu Dec 14 20:24:09 CET 2006 Paolo Molaro <lupus@ximian.com>
139
140         * Process.cs: if a process object is restarted, close the
141         previous process handle (bug #80143).
142
143 2006-11-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
144
145         * Process.cs: the Process returned by the static Start method never had
146         the right ProcessStartInfo. Fixes bug #80019.
147
148 2006-10-13  Atsushi Enomoto  <atsushi@ximian.com>
149
150         * DiagnosticsConfigurationHandler.cs : be more skeptic on
151           broken configuration file.
152
153 2006-09-28 Andrew Skiba <andrews@mainsoft.com>
154
155         * DefaultTraceListener.cs: TARGET_JVM
156
157 2006-09-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
158
159         * Process.cs: fix operation number to be 8. The other one was working
160         because the default is to wait for input on the file descriptor.
161
162 2006-09-05  Gert Driesen  <drieseng@users.sourceforge.net>
163
164         * Win32EventLog.cs: Removed workarounds for bug #79152 and bug #79117
165         now that these have been fixed. Release unmanaged memory that was
166         allocated for replacement strings.
167
168 2006-08-27  Gert Driesen  <drieseng@users.sourceforge.net>
169
170         * NullEventLog.cs: Added dummy GetLogNames implementation.
171         * EventLogImpl.cs: Moved GetEventLogs implementation to base class.
172         Added abstract GetLogNames method. Added ValidateCustomerLogName
173         method which should be called by eventlog providers when creating a
174         new log to ensure the significant part of the log name is unique, does
175         not match any of the special log names and does not match an exist event
176         source.
177         * Win32EventLog.cs: Validate customer log name when creating new log.
178         Moved GetEventLogs implementation to base class. Added GetLogNames
179         method.
180         * LocalFileEventLog.cs: Merged CreateLogStore into CreateEventSource.
181         Validate customer log name when creating new log. Moved GetEventLogs
182         implementation to base class. Added GetLogNames method.
183
184 2006-08-26  Gert Driesen  <drieseng@users.sourceforge.net>
185
186         * Win32EventLog.cs: Fixed error messages. Use RegisterEventSource
187         pinvoke when opening eventlog for writing entries.
188
189 2006-08-26  Gert Driesen  <drieseng@users.sourceforge.net>
190
191         * Win32EventLog.cs: Added and documented workarounds for bug #79117
192         and bug #79152.
193
194 2006-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
195
196         * LocalFileEventLog.cs: When event log store does not exist, then we
197         do not need to perform a case-insensitive lookup of the log name.
198
199 2006-08-20  Gert Driesen  <drieseng@users.sourceforge.net>
200
201         * EventLog.cs: Removed namespace import.
202         * EventInstance.cs: Added range checks and check whether specified
203         entry type is defined.
204
205 2006-08-20  Gert Driesen  <drieseng@users.sourceforge.net>
206
207         * EventLogEntry.cs: Added InstanceId property (2.0 only). Moved
208         Obsolete attribute to correct property.
209         * EventSourceCreationData.cs: Updated copyright. For internal ctor,
210         set log name to "Application" if value is null or zero-length string.
211         * EventLogImpl.cs: EventImpl now acts as base class for event log 
212         implemenations.
213         * NullEventLog.cs: Modified to implement new abstract methods of base
214         class. Removed factory class.
215         * EventLog.cs: EventLog implementation that delegates just about 
216         everything to individual eventlog providers. To specify the event log
217         implementation to use, the MONO_EVENTLOG_TYPE environment variable can
218         be used. Possible values are:
219         - win32 : read/write entries using the native win32 eventlog
220         - local[:path] : read/write entries as files to a local directory
221         - null : silently ignore all entries
222         The default is "null" on unix (and versions of Windows before NT,
223         meaning Windows 98, ...), and "win32" on Windows NT (and higher).
224         When "the local" implementation is used, the directory in which to 
225         store the event logs, event sources and entries can be specified as 
226         part of MONO_EVENTLOG_TYPE environment variable using the syntax 
227         "local:<path>" (eg. local:/home/myuser/mono/eventlog).
228         * LocalFileEventLog.cs: Event log implementation which uses a local
229         file store. The directory to use for persistence can be specified
230         as part of the MONO_EVENTLOG_TYPE environment variable (see above).
231         If that directory is not explicitly set, then the following directory
232         will be used for storing eventlog entries:
233         - windows       : %APPDATA%\mono\eventlog
234         - unix          : /var/lib/mono/eventlog
235         On unix, the directory permission for individual eventlog log 
236         directories will be set to 777 (with +t bit) allowing everyone to
237         read and write eventlog entries while only allowing entries to be
238         deleted by the user(s) that created them.
239         Format of log files was modified to allow it contain all necessary
240         information for an event log entry.
241         * Win32EventLog.cs: Event log implementation for Windows NT and 
242         higher which uses the Win32 native event log for reading/writing
243         eventlog entries, and which uses the registry to store event log and
244         event source registration information.
245         * EventLogEntryCollection.cs: Delegate implementation to event log
246         implementation. Use lazy init for enumerating entries. Cache current
247         item in 2.0 profile.
248
249 2006-08-14  Atsushi Enomoto  <atsushi@ximian.com>
250
251         * LocalFileEventLog.cs : change lengthy environment variable name.
252           MONO_LOCAL_EVENTLOG_PATH -> MONO_EVENTLOG_PATH.
253
254 2006-08-14  Atsushi Enomoto  <atsushi@ximian.com>
255
256         * EventLogImpl.cs, EventLogEntryCollection.cs, EventLog.cs :
257           some rework to support actual event log implementations.
258         * NullEventLog.cs, LocalFileEventLog.cs :
259           new files. The former (default) implementation does nothing for
260           any event log features. The latter implements local file based
261           event logs.
262
263 2006-08-14  Atsushi Enomoto  <atsushi@ximian.com>
264
265         * UnixEventLog.cs, EventLogEntry.cs, EventSourceCreationData.cs,
266           EventLogImpl.cs, Win32EventLog.cs, EventLogEntryCollection.cs,
267           EventLog.cs:
268           Reverted previous two changes that does not work at all.
269
270 2006-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
271
272         * EventLog.cs: For now, Use null implementation.
273
274 2006-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
275
276         * EventLogEntry.cs: Added InstanceId property (2.0 only). Moved
277         Obsolete attribute to correct property.
278         * EventSourceCreationData.cs: Updated copyright. For internal ctor,
279         set log name to "Application" if value is null or zero-length string.
280         * EventLogImpl.cs: EventImpl now acts as base class for event log 
281         implemenations. Added NullEventLog implementation, which is not used
282         at the moment.
283         * EventLog.cs: EventLog implementation that uses registry for
284         keeping track of logs and sources to match .NET (and Windows). When
285         running on Windows NT (and higher), event entries are written to
286         the native win32 event log.  Reading event entries is not yet working
287         for Windows. On linux, we use a local file store (based on patch by 
288         Atsushi).
289         * UnixEventLog.cs: Event log implementation for linux which uses a
290         local file store.
291         * Win32EventLog.cs: Event log implementation for Windows NT and 
292         higher which uses the Win32 native event log.
293         * EventLogEntryCollection.cs: Delegate implementation to event log
294         implemenation. Use lazy init for enumerating entries.
295
296 2006-08-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
297
298         * Process.cs: reset the 'start' time if we wait for stdout reading to
299         be completed.
300
301 2006-08-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
302
303         * Process.cs: add support for 2.0 asynchronous reads on stdout and
304         stderr.
305
306 2006-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
307
308         * EventSourceCreationData.cs: Marked ctor internal, and removed ctor.
309         Throw ArgumentOutOfRangeException if negative value for CategoryCount
310         is set.
311
312 2006-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
313
314         * EventInstance.cs: Added 2.0 class.
315         * EventSourceCreationData.cs: Added 2.0 class.
316         * OverflowAction.cs: Added 2.0 enum.
317
318 2006-07-31  Sebastien Pouliot  <sebastien@ximian.com>
319
320         * EventLogEntry.cs: Add a linkdemand for unrestricted on class.
321         * EventLogTraceListener.cs: Add a linkdemand for unrestricted on class
322         * FileVersionInfo.cs: Add a linkdemand for unrestricted on class. Add
323         an imperative demand for FileIOPermission.Read on GetVersionInfo 
324         method. Change ToString method to use a StringBuilder.
325         * PerformanceCounterCategory.cs: Add a linkdemand for unrestricted on
326         class.
327         * PerformanceCounterManager.cs: Add a linkdemand for unrestricted on 
328         class. Add [Obsolete] for NET_2_0 profile.
329         * Process.cs: Add a linkdemand and an inheritancedemand for 
330         unrestricted on class.
331         * ProcessStartInfo.cs: Add a linkdemand for unrestricted on class.
332
333 2006-07-16  Andrew Skiba <andrews@mainsoft.com>
334
335         * Process.cs: throw FileNotFoundException earlier; give more
336         diagnostics.
337
338 2006-05-16  Dick Porter  <dick@ximian.com>
339
340         * Process.cs: Dispose the handle from a destructor too
341
342 2006-04-04  Atsushi Enomoto  <atsushi@ximian.com>
343
344         * Stopwatch.cs:
345           Zoltan was quicker to add it, here I put my implementation ;-)
346         * Process.cs :
347           Added some missing long members (not implemented anyways).
348         * DataReceivedEventHandler.cs DataReceivedEventArgs.cs :
349           added new 2.0 types.
350
351 2006-04-01  Zoltan Varga  <vargaz@gmail.com>
352
353         * Stopwatch.cs: New file.
354
355 2006-03-31  Zoltan Varga  <vargaz@gmail.com>
356
357         * Debug.cs: Add net 2.0 Print methods.
358
359 2006-03-03  Dick Porter  <dick@ximian.com>
360
361         * Process.cs: Close redirected pipes on errors.  Fixes bug 77514.
362
363 2006-01-12  Ben Maurer  <bmaurer@andrew.cmu.edu>
364
365         * ConsoleTraceListener.cs: New 2.0 class
366
367 2005-11-17  Dick Porter  <dick@ximian.com>
368
369         * Process.cs: Split Start_common into Start_shell and
370         Start_noshell, which call ShellExecuteEx and CreateProcess
371         respectively.  Fixes bug 76670.
372
373 2005-09-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
374
375         * Process.cs: deal with the fact that someone can enable raising events
376         and/or registed a Exited delegate before and *after* Start is called for
377         the process. Only queue the exit callback in the threadpool when it's
378         possible and requested. Fixes bug #76129.
379
380 2005-08-09  Gert Driesen <drieseng@users.sourceforge.net>
381
382         * EventLog.cs: Fixed Designer attribute to match MS.NET.
383         * ICollectData.cs: Added marshalling attribute to match MS.NET.
384         * PerformanceCounter.cs: Fixed Designer attribute to match MS.NET.
385         * Process.cs: Fixed Designer attribute to match MS.NET, modified
386         * ProcessModule.cs: Fixed Designer attribute to match MS.NET.
387         * ProcessThread.cs: Fixed Designer attribute to match MS.NET.
388         DesignerSerializationVisibility on StartInfo to match MS.NET, changed
389         Category attribute on Exited event to match MS.NET.
390
391 2005-06-09  Gert Driesen <drieseng@users.sourceforge.net>
392
393         * TraceImpl.cs: Adjust internal indentlevel and indentsize before 
394         passing on to listeners. Fixes some test failures.
395
396 2005-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
397
398         * DefaultTraceListener.cs: s/MONO_TRACE/MONO_TRACE_LISTENER/. The
399         runtime uses MONO_TRACE too...
400
401 2005-05-31  Sebastien Pouliot  <sebastien@ximian.com>
402
403         * PerformanceCounterPermissionEntry.cs: Added more 2.0 validations for
404         machine names and PerformanceCounterPermissionAccess.
405
406 2005-02-22 Jonathan Pryor  <jonpryor@vt.edu>
407
408         * TraceImpl.cs: More Thread-safety fixes.  I have to lock on
409           Listeners.SyncRoot as we're traversing the collection and can't let the
410           collection change from underneath us while we're iterating over it
411           (alternately, we could clone the collection and iterate over the clone
412           without having locking issues -- assuming we had a lock-free clone -- 
413           but this would kill the GC).  Fixes 69964.  Only define lock_ if we're 
414           using the lock-free initialization routine; it's not used otherwise.
415
416 2005-01-18 Jonathan Pryor  <jonpryor@vt.edu>
417
418         * DiagnosticsConfigurationHandler.cs (DiagnosticsConfiguration): 
419           Use a lock-free algorithm for creating the settings information.
420         * TraceImpl.cs (InitOnce): Use a lock-free algorithm for creating the
421           listeners collection and initializing the world.
422
423 2005-01-18 Jonathan Pryor  <jonpryor@vt.edu>
424
425         * DiagnosticsConfigurationHandler.cs (DiagnosticsConfiguration): Don't 
426           read the .config file from the static ctor (again), as if it fails we'll 
427           get a TypeLoadException -- bad!  Instead, lazy-read the .config file.
428         * DiagnosticsConfigurationHandler.cs (DiagnosticsConfigurationHandler): 
429           Require that the /switch/add/@value attribute contains only numeric values.
430         * TraceImpl.cs: Don't initialize everything in the static ctor, as if it
431           fails (due to an invalid .confg file) we get a TypeLoadException, while
432           .NET generates a ConfigurationException.  Instead, initialize everything
433           the first time the Listeners property is accessed, which allows the static
434           ctor to run without chance of failure, avoiding the TypeLoadException.
435         * TraceListenerCollection.cs: This should be thread-safe, as it's accessible
436           from a static member of TraceImpl (available through the public Debug and 
437           Trace classes).
438         * Switch.cs: Leave the original switch value alone.  If it isn't valid 
439           (i.e. numeric), the DiagnosticsConfigurationHandler will catch it.
440
441 2005-01-17 Jonathan Pryor  <jonpryor@vt.edu>
442
443         * DiagnosticsConfigurationHandler.cs: The /switch/add/@value attribute 
444           isn't optional under .NET 1.1, so make sure it exists.
445
446 2005-01-13 Jonathan Pryor  <jonpryor@vt.edu>
447
448         * DiagnosticsConfigurationHandler.cs: Make DiagnosticsConfiguration.Settings
449           thread-safe (double-checked locking isn't thread safe on .NET without
450           using a volatile variable, and setting the variable in the static
451           constructor is easier anyway).
452         * Switch.cs (GetConfigFileSetting): If the setting is non-numeric, set the
453           attribute value to the string "0".  This is apparently what .NET 1.1 does,
454           and allows the SwitchTest NUnit test to work w/o failures.
455
456 2004-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
457
458         * Process.cs: always pass the same arguments to the runtime.
459
460 2004-09-11  Sebastien Pouliot  <sebastien@ximian.com>
461
462         * EventLogPermission.cs: Completed implementation.
463         * EventLogPermissionAccess.cs: Fixed enum values.
464         * EventLogPermissionEntry.cs: Added validation for machine names.
465         * EventLogPermissionEntryCollection.cs: Added synchronization
466         of entries with the base permission class.
467         * PerformanceCounterPermission.cs: Completed implementation.
468         * PerformanceCounterPermissionAccess.cs: Fixed enum values.
469         * PerformanceCounterPermissionEntry.cs: Added validations for machine
470         and category names.
471         * PerformanceCounterPermissionEntryCollection.cs: Added synchronization
472         of entries with the base permission class.
473
474 2004-09-10  Sebastien Pouliot  <sebastien@ximian.com>
475
476         * EventLogPermission.cs: Fixed initialization (TagNames and
477         PermissionAccessType).
478         * EventLogPermissionAccess.cs: Added new enums for NET_2_0 and added 
479         [Obsolete] to some existing elements.
480         * EventLogPermissionAttribute.cs: Added missing validation to property
481         MachineName. Fixed changes for NET_2_0.
482         * PerformanceCounterPermission.cs: Fixed initialization (TagNames and
483         PermissionAccessType).
484         * PerformanceCounterPermissionAccess.cs: Added new enums for NET_2_0
485         and added [Obsolete] to some existing elements.
486         * PerformanceCounterPermissionAttribute.cs: Added missing validations
487         to properties (Path, MachineName). Fixed changes for NET_2_0.
488
489 2004-09-07  Dick Porter  <dick@ximian.com>
490
491         * Process.cs: Throw documented exceptions when getting stdin,
492         stdout or stderr and they haven't been redirected.  Check that
493         CreatePipe didn't fail, throw exceptions if it did.  Close
494         redirected streams when the process is disposed, rather than rely
495         on the GC disposing them later.  Makes timeline much happier,
496         because it could run out of file descriptors between GC
497         collections.
498
499 2004-09-06  Dick Porter  <dick@ximian.com>
500
501         * Process.cs: Make Dispose() actually dispose things.
502
503 2004-06-24  Atsushi Enomoto  <atsushi@ximian.com>
504
505         * Process.cs : quick fix for UseShellExecute=false on windows. See
506           the code comment.
507
508 2004-06-17  Lluis Sanchez Gual  <lluis@ximian.com>
509
510         * Process.cs: Added missing check in HasExited property.
511
512 2004-05-20  Gert Driesen (drieseng@users.sourceforge.net)
513
514         * EventLogPermissionAttribute.cs:
515         * PerformanceCounterPermissionAttribute.cs: adjust AllowMultiple
516         and Inherited to match .NET
517
518 2004-05-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
519
520         * Process.cs: separate the command and the arguments when calling
521         Start_internal.
522
523 2004-05-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
524
525         * Process.cs: redirecting I/O is not permitted if UseShellExecute is
526         true. Also throw if FileName is null.
527
528 2004-04-06  Lluis Sanchez Gual  <lluis@ximian.com>
529
530         * DiagnosticsConfigurationHandler.cs: If initializeData is provided,
531         use the constructor that only takes one string as parameter to
532         construct the listener. The name is set using the Name property, not the
533         constructor.
534         
535         * TextWriterTraceListener.cs: In Write*, do nothing if no writer was 
536         provided.
537
538 2004-03-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
539
540         * Process.cs: use the ISynchronizeInvoke object to invoke the event.
541         Implemented Close, CloseMainWindow and Kill.
542
543 2004-03-23 Ben Maurer  <bmaurer@users.sourceforge.net>
544
545         * Switch.cs: Don't throw when there is no switches section.
546
547 2004-03-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
548
549         * Process.cs: support EnableRaisingEvents + Exited event.
550
551 2004-03-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
552
553         * Process.cs: patch by Gert Driesen that fixes WaitForExit when the
554         timeout is int.MaxValue.
555
556 2004-03-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
557
558         * Process.cs: added environment variables setting support and also
559         send useShellExecute to the runtime.
560
561         * ProcessStartInfo.cs: support EnvironmentVariables.  MS uses
562         StringDictionary, which turns keys into lowercase. We don't do that.
563
564 2004-02-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
565
566         * Process.cs: ExitCode and ExitTime check that the process is finished.
567
568 2003-12-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
569
570         * Process.cs: if there's an error when starting the process, the 'pid'
571         field contains the GetLastError code. Use that for the Win32Exception.
572
573 2003-12-06  Martin Baulig  <martin@ximian.com>
574
575         * DefaultTraceListener: Don't use `where' in variable names.
576
577 2003-11-13  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
578
579         * ICollectData.cs: Fixed signature
580
581 2003-11-12  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
582
583         * ICollectData.cs: Added missing attribute
584
585 2003-07-27  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
586
587         * SRDescriptionAttribute.cs: Moved to System directory
588
589 2003-07-21  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
590
591         * EventLog.cs: Implementation handling
592         * EventLogImpl.cs: Added, contains an platform independent empty implementation
593         for EventLog
594
595 2003-07-18  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
596
597         * AlphabeticalEnumConverter.cs: Added
598         * EventLogEntry.cs: Implemented
599         * EventLogPermissionEntryCollection.cs: Fixed signature and implementation of indexer
600         * EventLogTraceListener.cs: Fixed signature
601         * PerformanceCounter.cs: Added missing attribute
602         * PerformanceCounterType.cs: Added missing attribute
603         * SRDescriptionAttribute.cs: Added and implemented
604
605 2003-07-17  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
606
607         * CounterCreationData.cs:
608         * EventLog.cs:
609         * EventLogEntry.cs:
610         * PerformanceCounter.cs:
611         * Process.cs:
612         * ProcessModule.cs:
613         * ProcessStartInfo.cs:
614         * ProcessThread.cs: Reworked attributes based on the new Consts scheme
615
616 2003-07-14  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
617
618         * PerformanceCounterCategory.cs: Fixed signatures
619
620 2003-07-13  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
621
622         * PerformanceCounter.cs: Implemented or implementation added
623
624 2003-07-13  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
625
626         * DiagnosticsConfigurationHandler.cs: Removed a never used variable
627         * EventLog.cs: Small update to prevent a warning
628         * EventLogPermission.cs: Implemented or implementation added
629         * EventLogPermissionAttribute.cs: Implemented or implementation added
630         * EventLogPermissionEntry.cs: Implemented or implementation added
631         * EventLogPermissionEntryCollection.cs: Implemented or implementation added
632         * EventLogTraceListener.cs: Implemented or implementation added
633         * PerformanceCounterManager.cs: Implemented or implementation added
634         * PerformanceCounterInstaller.cs: Made internal
635         * PerformanceCounterCategory.cs: Implemented few members
636         * PerformanceCounterPermission.cs: Implemented or implementation added
637         * PerformanceCounterPermissionAttribute.cs: Implemented or implementation added
638         * PerformanceCounterPermissionEntry.cs: Implemented or implementation added
639         * PerformanceCounterPermissionEntryCollection.cs: Implemented or implementation added
640         
641 2003-07-07  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
642
643         * EventLog.cs: Removed unneccesary attribute according to corecompare
644         * EventLogEntry.cs: Removed unneccesary attribute according to corecompare
645         * Process.cs: Removed unneccesary attributes according to corecompare, added attribute
646         * ProcessModule.cs: Removed unneccesary attribute according to corecompare
647         * ProcessStartInfo.cs: Removed unneccesary attribute according to corecompare
648         * ProcessThread.cs: Removed unneccesary attribute according to corecompare, fixed signature
649
650 2003-07-05  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
651
652         * InstanceDataCollectionCollection.cs: Corrected wrong signature
653         * EventLog.cs: Missing attributes added, redirected some class members
654         * EventLogEntry.cs: Missing attributes added
655         * EventLogInstaller.cs: Made internal
656         
657 2003-07-02  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
658
659         * CounterCreationData.cs: Added missing attributes
660         * CounterSample.cs: Implemented missing rest, fixed signature
661         * CounterSampleCalculator.cs: Added private constructor, redirected function
662         * Process.cs: Added attributes, added event mechanism
663         * ProcessModule.cs: Added missing attributes
664         * ProcessModuleCollection.cs: Redone using the already inherited-from ArrayList. Simplifies this a LOT
665         * ProcessStartInfo.cs: Added missing attributes, moved internal fields to the begining of the file, restyling
666         * ProcessThread.cs: Added missing attributes, added pseudo constructor
667         * ProcessThreadCollection.cs: Implemented
668         * PerformanceCounterPermission.cs: Fixed typo in class name
669         * PerformanceCounterPermissionAccess.cs: Added attributes, fixed wrong member
670         
671 2003-03-19  Dick Porter  <dick@ximian.com>
672
673         * Process.cs: Implement HasExited, fixes bug 39267
674
675 2003-03-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
676
677         * Process.cs: throw an exception when the executable cannot be found.
678
679 2002-12-20  Jonathan Pryor <jonpryor@vt.edu>
680         * DiagnosticsConfigurationHandler.cs: 
681           - Don't assume that optional attributes are always present
682           - <assert/> can't have any child nodes
683           - Change in semantics: if the attribute isn't present,
684             GetAttribute() returns null, not "".  This allows us to
685             differentiate between an attribute not being present and an
686             attribute with an empty value.
687           - Translate exceptions if a TraceListener type is invalid
688
689 2002-12-19  Jonathan Pryor <jonpryor@vt.edu>
690         * TraceListenerCollection.cs: IndentLevel and IndentSize shouldn't be 
691           hardcoded; they should be set to whatever TraceImpl is using (which
692           in turn may have been set by the .config file, so we should get the
693           user-specified values in added listeners).
694         * TraceListener.cs: Make sure that indents are initially written.  This 
695           allows code that uses Trace.Indent() before a Trace.WriteLine() to be 
696           indented properly.
697         * TraceImpl.cs: provide a static constructor to explicitly specify the
698           ordering of initialization, in particular the ordering of
699           TraceImpl.Listeners and the reading of the .config file (by
700           accessing DiagnosticsConfiguration.Settings).  This (hopefully)
701           ensures that the Listeners collection is initialized before the
702           .config file is read in, as the DiagnosticsConfigurationHandler will
703           directly modify the listeners collection.
704           The DiagnosticsConfigurationHandler assumes this so that it can
705           <add/> and <remove/> trace listeners and set the logfile for the
706           DefaultTraceListener.
707
708
709 2002-12-18  Jonathan Pryor <jonpryor@vt.edu>
710         * BooleanSwitch.cs: Complete re-write.  It works now.
711         * DefaultTraceListener.cs:
712           - Use `const' strings, so I don't worry about copy/paste errors
713           - Give `AssertUiEnabled' an actual backing member
714         * DiagnosticsConfigurationHandler.cs: To avoid race conditions, let the
715           configuration handler set .config-specified properties on
716           DefaultTraceListener (AssertUiEnabled, LogFileName) and TraceImpl
717           (AutoFlush, IndentSize).
718         * Switch.cs: Near complete re-write.  Actually works, and is (should be)
719           comformant with .NET behavior.  Changed member names because they
720           were confusing me.  (Yes, that doesn't say much about my memory.)
721         * TextWriterTraceListener.cs: Append text to already existing files,
722           don't overwrite them.
723         * TraceImpl.cs:
724           - Added private destructor, to ensure no instances are created.
725           - Move members declarations to be closer to each other.
726         * TraceSwitch.cs: Complete re-write.  It works now.
727
728 2002-12-17  Jonathan Pryor <jonpryor@vt.edu>
729         * DiagnosticsConfigurationHandler.cs: Implement so that .config files
730         support <system.diagnostics> sections.
731
732 2002-12-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
733
734         * DefaultTraceListener.cs: now OutputDebugStringW is called from an
735         internal call (update your runtime!). No more warnings in linux.
736
737 2002-10-31  Dick Porter  <dick@ximian.com>
738
739         * Process.cs: MonoIO methods now have an error parameter
740
741 2002-10-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
742
743         * DefaultTraceListener.cs: changed OutputDebugString to
744         OutputDebugStringW (no more warnings under windows). Also a few style
745         fixes.
746
747 2002-10-23  Dick Porter  <dick@ximian.com>
748
749         * Process.cs: Redirected standard input needs to have AutoFlush set
750
751 2002-09-27  Dick Porter  <dick@ximian.com>
752
753         * Process.cs: Implemented {get_,set_}{Min,Max}WorkingSet,
754         ProcessName, GetProcessById, GetProcesses, GetProcessesByName.
755         Pass the working directory to Start.  Pass the program and args in
756         one string to be used with the second arg of CreateProcess, so it
757         will search the path.
758
759 2002-09-19  Nick Drochak <ndrochak@gol.com>
760
761         * TraceImpl.cs: Remove debug prints
762
763 2002-09-19  Nick Drochak <ndrochak@gol.com>
764
765         * TraceListenerCollection.cs: Set Indet level and size to default 
766         values.  The values from TraceImpl might have been changed.
767
768 2002-08-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
769
770         * Process.cs:
771         * TextWriterTraceListener.cs: IDisposable fixes.
772
773 2002-08-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
774
775         * Process.cs: class status based fixes.
776
777 2002-07-20  Dick Porter  <dick@ximian.com>
778
779         * Process.cs: Implement file handle redirection
780
781 2002-07-13  Jonathan Pryor <jonpryor@vt.edu>
782         * CounterCreationData.cs: Implemented
783         * CounterCreationDataCollection.cs: Implemented
784         * CounterSample.cs: Stubbed Out
785         * CounterSampleCalculator.cs: Stubbed Out
786         * InstanceData.cs: Implemented
787         * InstanceDataCollection.cs: Implemented
788         * InstanceDataCollectionCollection.cs: Implemented
789         * MonitoringDescriptionAttribute.cs: Implemented
790         * PerformanceCounter.cs: Stubbed Out
791         * PerformanceCounterCategory.cs: Stubbed Out
792         * PerformanceCounterInstaller.cs: Stubbed Out
793         * PerformanceCounterManager.cs: Stubbed Out
794         * PerformanceCounterPermission.cs: Stubbed Out
795         * PerformanceCounterPermissionAccess.cs: Implemented
796         * PerformanceCounterPermissionAttribute.cs: Stubbed Out
797         * PerformanceCounterPermissionEntry.cs: Stubbed Out
798         * PerformanceCounterPermissionEntryCollection.cs: Implemented
799         * PerformanceCounterType.cs: Implemented
800
801
802 2002-06-25  Dick Porter  <dick@ximian.com>
803
804         * Process.cs: Process forking and waiting, and some support functions
805
806         * ProcessStartInfo.cs: Implemented the bits needed for basic
807         Process forking
808
809         * ProcessModule.cs: Implemented
810
811         * ProcessModuleCollection.cs: Mostly implemented
812
813         * FileVersionInfo.cs: Implemented
814
815 2002-06-16  Jonathan Pryor <jonpryor@vt.edu>
816         * ICollectData.cs: Implemented
817         * TraceImpl.cs: Setting IndentLevel, IndentSize should change the
818                 corresponding properties on all current TraceListeners.
819                 Also, to answer the FIXME message: Yes, the properties in TraceListener
820                 need to be [ThreadStatic] as well.
821         * TraceListenerCollection.cs: When adding a TraceListener, the TraceListener
822                 should have its properties set to the current TraceImpl property values.
823         * TraceListener.cs: Make indentSize, lndentLevel [ThreadStatic].
824
825 2002-06-09  Jonathan Pryor <jonpryor@vt.edu>
826         * EntryWrittenEventArgs.cs: Implemented
827         * EntryWrittenEventHandler.cs: Implemented
828         * EventLog.cs: Stubbed out
829         * EventLogEntry.cs: Stubbed out
830         * EventLogEntryCOllection.cs: Implemented.
831         * EventLogEntryType.cs: Implemented
832         * EventLogInstaller.cs: Stubbed out
833         * EventLogPermission.cs: Stubbed out
834         * EventLogPermissionAccess.cs: Implemented
835         * EventLogPermissionAttribute.cs: Stubbed out
836         * EventLogPermissionEntry.cs: Stubbed out
837         * EventLogPermissionEntryCollection.cs: Stubbed out
838         * EventLogTraceListener.cs: Stubbed out
839
840 2002-05-29  Jonathan Pryor <jonpryor@vt.edu>
841   * DefaultTraceListener.cs: Implemented MONO_TRACE support
842
843 2002-05-27  Jonathan Pryor <jonpryor@vt.edu>
844   * Moved public API documentation for the following files to the
845     /mcs/docs/apidocs/xml/en/System.Diagnostics directory:
846     - Debug.cs
847     - DefaultTraceListener.cs
848     - DiagnosticsConfigurationHandler.cs
849     - Switch.cs
850     - TextWriterTraceListener.cs
851     - Trace.cs
852     - TraceLevel.cs
853     - TraceListener.cs
854     - TraceListenerCollection.cs
855     - TraceSwitch.cs
856
857 2002-04-10  Jonathan Pryor <jonpryor@vt.edu>
858
859         * TraceListenerCollection.cs: Corrected indexer property to provide the
860                 correct return value and implement the IList indexer property correctly.
861
862 2002-04-07  Jonathan Pryor <jonpryor@vt.edu>
863
864         * TraceListener.cs: Fix stack overflow bug
865         * DefaultTraceListener.cs: Implement log file support
866
867 2002-04-04  Dick Porter  <dick@ximian.com>
868
869         * ThreadWaitReason.cs:
870         * ThreadState.cs:
871         * ThreadPriorityLevel.cs:
872         * ProcessWindowStyle.cs:
873         * ProcessThreadCollection.cs
874         * ProcessThread.cs:
875         * ProcessStartInfo.cs:
876         * ProcessModuleCollection.cs: Stub out more classes needed for Process
877
878 2002-03-31  Dick Porter  <dick@ximian.com>
879
880         * Process.cs: 
881         * ProcessPriorityClass.cs: 
882         * ProcessModule.cs: 
883         * FileVersionInfo.cs: Stub out classes needed for Process
884
885 2002-03-08  Jonathan Pryor <jonpryor@vt.edu>
886
887         * Debug.cs: Clean up (lots of code can be shared with Trace.cs, which 
888                 is why TraceImpl.cs is introduced), "DEBUG" conditional support
889         * TraceListener.cs: Proper implementation of Dispose pattern;
890                 implementatino of non-abstract methods in terms of abstract methods
891         * TraceListenerCollection.cs: check 'object' types before adding
892         * TextWriterTraceListener.cs: properly implement Dispose pattern;
893                 handle NeedIndent and WriteIndent
894         * Trace.cs: new file; provides Trace functionality, "TRACE" conditional
895                 support
896         * DefaultTraceListener.cs: new file; the default trace listener
897
898 2002-01-17  Miguel de Icaza  <miguel@ximian.com>
899         * TraceListenerCollection.cs: Remove Warnings.
900
901 2002-01-06  Ravi Pratap  <ravi@ximian.com>
902         * Switch.cs, TraceListenerCollection.cs : Decorate incomplete bits
903         with the MonoTODO attribute.
904
905 2002-01-04  John R. Hicks <angryjohn69@nc.rr.com>
906         * Added Debug.cs to the build.
907
908 2002-01-04  John R. Hicks <angryjohn69@nc.rr.com>
909         * Added preliminary TraceListenerCollection.cs to the build.
910
911 2002-01-04  John R. Hicks <angryjohn69@nc.rr.com>
912         * Added TraceListener.cs, TextWriterTraceListener.cs, and
913         DefaultTraceListener.cs to the build and moved them into the
914         proper assembly.
915
916 2002-01-04  John R. Hicks <angryjohn69@nc.rr.com>
917         * Added DiagnosticsConfigurationHandler.cs to the build.
918
919 2001-09-09  Nick Drochak <ndrochak@gol.com>
920         * BooleanSwitch.cs: Make this class use it's parent class's features.  Namely, use SwitchSetting
921         so that we can get OnSwitchSettingChanged() to fire for free.
922
923 2001-09-09  Nick Drochak <ndrochak@gol.com>
924         * ChangeLog: added this file
925         * Switch.cs: call OnSwitchSettingChanged() when the switch setting is, yes you gessed it, changed.