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