2009-01-18 Zoltan Varga <vargaz@gmail.com>
[mono.git] / mcs / class / System / System.Diagnostics / ChangeLog
1 2009-01-18  Zoltan Varga  <vargaz@gmail.com>
2
3         * Process.cs: Avoid closing the duplicated process handle in
4         ProcessWaitHandle, it is done automatically by the WaitHandle.Dispose ().
5         Fixes #464628.
6
7 2008-12-09 Christian Hergert <christian.hergert@gmail.com>
8
9         * CounterCreationData.cs: CounterHelp defaults to String.Empty.
10
11 2008-11-20 Gonzalo Paniagua Javier <gonzalo@novell.com>
12
13         * PerformanceCounter.cs: add 2 workarounds for known problems. I will
14         add the corresponding test cases later.
15
16 2008-11-13  Bill Holmes  <billholmes54@gmail.com>
17
18         * Process.cs : Adding an implementation for WaitForInputIdle
19           to call the an internal call.  The internal call is only 
20           implemented properly on Windows.
21           
22         Code is contributed under MIT/X11 license.
23
24 2008-11-06  Jonathan Chambers  <joncham@gmail.com>
25
26         * Process.cs : Use DuplicateHandle when redirecting
27         StdInput and StdOutput. Fixes bug #436291.
28
29 Mon Oct 13 14:39:52 CEST 2008 Paolo Molaro <lupus@ximian.com>
30
31         * Process.cs: added icall and implementation of many memory-related
32         query methods (bug #434473).
33
34 2008-09-20  Gert Driesen  <drieseng@users.sourceforge.net>
35
36         * PerformanceCounter.cs:
37         * Stopwatch.cs:
38         * TraceImpl.cs: Fixed line endings.
39
40 2008-09-20  Gert Driesen  <drieseng@users.sourceforge.net>
41
42         * DiagnosticsConfigurationHandler.cs (AddTraceAttributes): Avoid
43         wrapping configuration errors thrown during initialization of
44         TraceImpl. Fixed line endings.
45
46 2008-09-18  Paolo Molaro <lupus@ximian.com>
47
48         * CounterSampleCalculator.cs: added more calculated types.
49         * PerformanceCounter.cs: NextValue() works as well as RawValue.
50
51 2008-09-10  Bill Holmes  <billholmes54@gmail.com>
52
53         * Process.cs : Update the fields of ProcessAsyncReader to 
54           match MonoSocketAsyncResult metadata/socket-io.h
55
56         Contributed under MIT/X11 license.
57
58 2008-09-09  Jonathan Pryor  <jpryor@novell.com>
59
60         * TraceImpl.cs:
61           - Remove the "lock-free" code, which (come to think of it) would be 
62             faulty in a multithreaded environment anyway because the "other"
63             threads won't wait (block) until initialization is complete...
64           - Add InitOnce() calls to all public properties, so that
65             `Debug.AutoFlush=true' will cause InitOnce() to be loaded, lest
66             a `Debug.AutoFlush=true; Debug.Listeners.Add(...)` sequence cause
67             .AutoFlush=true to be ignored as the InitOnce implied by .Add() 
68             will "overwrite" the .AutoFlush.
69           - Split up TraceListenerCollection creation from DefaultTraceListener 
70             addition, as TraceListenerCollection.Add() calls back into 
71             TraceImpl, so if these aren't separate we get an infinite loop
72             and never actually initialize anything.
73           - Fixes #424370.
74         * TraceListenerCollection.cs: Add a TraceListenerCollection(bool)
75           constructor, which provides a way to NOT add the
76           DefaultTraceListener (needed by TraceImpl; see above).
77
78 2008-08-06  Sebastien Pouliot  <sebastien@ximian.com>
79
80         * Debug_2_1.cs: Add missing [Conditional] attributes.
81
82 2008-08-02  Gert Driesen  <drieseng@users.sourceforge.net>
83
84         * DelimitedTraceListener.cs: Changed accessibility of
85         GetSupportedAttributes to protected internal.
86         * DiagnosticsConfigurationHandler.cs: Use GetSupportedAttributes to
87         allow custom attributes on tracelisteners. Fixes bug #413203.
88         * TraceListener.cs: Changed accessibility of GetSupportedAttributes
89         to protected internal. Removed MonoTODO on GetSupportedAttributes and
90         Attributes. Fixed line endings.
91
92 2008-08-01  Paolo Molaro <lupus@ximian.com>
93
94         * CounterCreationData.cs, PerformanceCounterCategory.cs: more
95         checks and default type fix.
96
97 2008-07-28  Dick Porter  <dick@ximian.com>
98
99         * Process.cs: When passing handle references around, it needs to
100         be duplicated and freed so the OS doesn't close it.  Makes the
101         testcase in 410743 work again now the underlying bug has been
102         fixed.
103
104 2008-07-27  Zoltan Varga  <vargaz@gmail.com>
105
106         * Process.cs (SetExitCallbackIfNeeded): Avoid a race condition by not
107         checking for HashExited.
108
109 2008-06-27  Atsushi Enomoto  <atsushi@ximian.com>
110
111         * DiagnosticsConfigurationHandler.cs: quick build fix (hopefully).
112
113 2008-06-26  Gert Driesen  <drieseng@users.sourceforge.net>
114
115         * DiagnosticsConfigurationHandler.cs: On 2.0 profile, throw
116         ConfigurationErrorsException when any attribute other than 'Name'
117         is found when referencing a shared listener. Fixes bug #404054.
118         Added support for the traceOutputOptions attribute on 2.0 profile.
119         Fixes bug #403583. 
120
121 2008-06-21  Robert Jordan  <robertj@gmx.net>
122
123         * Process.cs (Start_common): UserName may be null or empty.
124         Fixes bug  #350543.
125
126 2008-06-19  Dick Porter  <dick@ximian.com>
127
128         * Process.cs: Match the buffer sizes of StreamReader and
129         MonoSyncFileStream for redirected stdout and stderr.  Fixes bug
130         401225.
131
132 2008-05-02  Zoltan Varga  <vargaz@gmail.com>
133
134         * TraceImpl.cs: Update the IndentLevel property of this class when Indent ()
135         or Unindent () are called. Fixes #385666.
136
137 2008-03-26  Dick Porter  <dick@ximian.com>
138
139         * FileVersionInfo.cs: Patch from Gert Driesen
140         (gert.driesen@pandora.be) for bug 355717.
141
142 2008-03-19  Zoltan Varga  <vargaz@gmail.com>
143
144         * Stopwatch.cs: Fix visibility of GetTimestamp () method.
145
146 Thu Feb 28 19:52:30 CET 2008 Paolo Molaro <lupus@ximian.com>
147
148         * CounterCreationData.cs, PerformanceCounterCategory.cs,
149         PerformanceCounter.cs: bugfixes, icalls for categories,
150         more methods implemented.
151
152 Wed Feb 27 20:00:04 CET 2008 Paolo Molaro <lupus@ximian.com>
153
154         * CounterSample.cs, CounterSampleCalculator.cs, PerformanceCounter.cs,
155         PerformanceCounterCategory.cs, PerformanceCounterCategoryType.cs:
156         beginning of the performance counter implementation.
157
158 Tue Feb 26 18:37:13 CET 2008 Paolo Molaro <lupus@ximian.com>
159
160         * Stopwatch.cs: use an hires monotonic clock.
161
162 2008-01-23  Gert Driesen  <drieseng@users.sourceforge.net>
163
164         * FileVersionInfo.cs (GetVersionInfo): Resolve filename to absolute
165         path, and throw FileNotFoundException if it does not exist.
166
167 2007-12-22  Gert Driesen  <drieseng@users.sourceforge.net>
168
169         * Process.cs: In PriorityClass setter, first check whether value is
170         valid and remove LAMESPEC since the documentation has been corrected
171         for .NET 3.5. Code formatting.
172
173 2007-12-19  Dick Porter  <dick@ximian.com>
174
175         * Process.cs: Check that the process has been started before
176         getting or setting the priority class.  Fixes bug 348415.
177
178 2007-12-10  Miguel de Icaza  <miguel@novell.com>
179
180         * DefaultTraceListener.cs: By default set the AssertUiEnabled to
181         false, as this is what we had previously and some broken
182         applications (Tomboy) are too trigger happy with Debug.Assert. 
183
184         Also, we now load the Windows.Forms code on demand, instead of
185         preloading it on the static ctor to reduce memory usage.
186
187 2007-12-08  Gert Driesen  <drieseng@users.sourceforge.net>
188
189         * LocalFileEventLog.cs: To allow entry to be fully written before
190         attempting to read it, added small sleep period in the Created event
191         of the FSW.
192
193 2007-12-04  Gert Driesen  <drieseng@users.sourceforge.net>
194
195         * Process.cs: Modified StartInfo to throw ArgumentNullException when
196         value is set to null, instead of ArgumentException. Remove check if
197         file name is rooted and exists when UseShellExecute is false, and let
198         runtime handle this. Fixes bug #3455655. When a process cannot be
199         started, do not access ProcessStartInfo.EnvironmentVariables since that
200         would not allow us to re-use the instance when changing
201         UseShellExecute. Added argument check in Start (ProcessStartInfo).
202         Code formatting.
203
204 2007-11-16  Jb Evain  <jbevain@novell.com>
205
206         * Debug_2_1.cs: simply write debug messages to the
207         console.
208
209 2007-11-15  Dick Porter  <dick@ximian.com>
210
211         * Process.cs: Pass the process handle to GetModules_internal();
212
213 2007-11-13  Atsushi Enomoto  <atsushi@ximian.com>
214
215         * Process.cs : ... and it exposed some missing attributes.
216
217 2007-11-13  Atsushi Enomoto  <atsushi@ximian.com>
218
219         * Process.cs : oops, SessionId was int.
220
221 2007-11-13  Atsushi Enomoto  <atsushi@ximian.com>
222
223         * Process.cs : added missing SessionId (NIE).
224
225 2007-10-30  Robert Jordan  <robertj@gmx.net>
226
227         * Process.cs: Wrap the redirected streams with a stream
228         that provides real async Begin/Read|Write operations.
229         Fixes bug #319829.
230
231 2007-09-25  Miguel de Icaza  <miguel@novell.com>
232
233         * Process.cs: Return an empty collection to prevent crashes;
234         Fixes #319946
235
236 Tue Sep 25 18:03:37 CEST 2007 Paolo Molaro <lupus@ximian.com>
237
238         * Process.cs: eliminate the console encoding logic which was
239         duplicated from System.Console and just use Console.Out.Encoding
240         (bug #328162).
241
242 2007-09-21  Gert Driesen  <drieseng@users.sourceforge.net>
243
244         * DiagnosticsConfigurationHandler.cs: Rename ValidateIntegralValue
245         to GetSwitchValue. On 2.0 profile, leave the type conversion to
246         Switch implementations. Minor corrections to exception messages to
247         match MS.
248         * Switch.cs: Avoid unnecessary inits. On 2.0 profile, catch and
249         rethrow exceptions in setter for Value. Do not hide exceptions thrown
250         in GetConfigFileSetting. Only set value from config file if switch is
251         actually defined.
252         * SourceSwitch.cs: Use SwitchSetting for getting/storing value instead
253         of new field. In OnValueChanged, parse enum value.
254         * TraceSwitch.cs: If SwitchSetting is changed to value > 4, then set
255         it to Verbose. In OnValueChanged, parse value case-insensitively, and
256         assign it to SwitchSetting (to allow other integral values).
257
258 2007-09-05  Atsushi Enomoto  <atsushi@ximian.com>
259
260         * EventLog.cs : added cosmetic 2.0 attributes on newly added members.
261
262 2007-09-05  Atsushi Enomoto  <atsushi@ximian.com>
263
264         * EventLog.cs, EventLogImpl.cs, LocalFileEventLog.cs, NullEventLog.cs,
265           Win32EventLog.cs : added missing members, will be left unsupported
266           in non-Win32 impl and left unimplemented in Win32.
267         * CounterCreationDataCollection.cs : in 2.0 OnValidate() is overriden
268           instad of OnInsert().
269         * Process.cs : removed StandardErrorEncoding and
270           StandardOutputEncoding. They do not exist anymore.
271
272 2007-09-03  Atsushi Enomoto  <atsushi@ximian.com>
273
274         * ProcessStartInfo.cs : Implemented Verbs. It is done.
275
276 2007-09-03  Atsushi Enomoto  <atsushi@ximian.com>
277
278         * Process.cs, ProcessStartInfo.cs : user info support (on windows).
279
280 2007-08-23  Robert Jordan  <robertj@gmx.net>
281
282         * Process.cs: implement PriorityClass. Fixes #81756.
283
284 Mon Aug 20 12:41:09 CEST 2007 Paolo Molaro <lupus@ximian.com>
285
286         * Process.cs: implemented icall for system/user times.
287
288 2007-08-14  Gert Driesen  <drieseng@users.sourceforge.net>
289
290         * EventLog.cs: Do not allow all whitespace machine name. Do nothing
291         when setting the same value for EnableRaisingEvents, and only modify
292         value of field when enable/disable succeeded. Treats log name case
293         insensitively on all platforms, and perform reset when the log name
294         is changed. Validate new machine name in property, and treat it
295         case-insensitively. Perform reset when source is modified, and log
296         name was not explicitly set. When EventLog is closed, also disable
297         event watcher.
298         * LocalEventLog.cs: In Close, clean-up the FileSystemWatcher. Add
299         locking to Created eventhandler to avoid duplicate notifications.
300         * Win32EventLog.cs: Cache handle for reading from eventlog. In Close,
301         close the read handle. Implement support for watching win32 eventlog.
302         Fixes bug #82436.
303
304 2007-08-08  Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
305
306         * Process.cs: added StandardOutputEncoding and StandardErrorEncoding
307         properties. Bug #82262 fixed.
308
309 2007-08-06  Atsushi Enomoto  <atsushi@ximian.com>
310
311         * Process.cs, ProcessStartInfo.cs : added StandardOutputEncoding
312           and StandardErrorEncoding.
313
314 2007-08-06  Atsushi Enomoto  <atsushi@ximian.com>
315
316         * PerformanceCounterCategory.cs PerformanceCounter.cs :
317           added missing 2.0 stuff (unimplemented, where things are anyways
318           unimplemented in 1.x layer).
319
320 2007-08-06  Atsushi Enomoto  <atsushi@ximian.com>
321
322         * PerformanceCounterInstanceLifetime.cs
323           PerformanceCounterCategoryType.cs : new.
324         * ICollectData.cs ProcessStartInfo.cs
325           InstanceDataCollectionCollection.cs PerformanceCounter.cs
326           InstanceDataCollection.cs Process.cs :
327           cosmetic attributes cleanup.
328
329 2007-08-03  Jb Evain  <jbevain@novell.com>
330
331         * FileVersionInfo.cs: force the use of the params
332         AppendFormat method of StringBuilder as it is the only
333         one accessible in 2.1 and in the previous versions.
334
335 2007-08-03  Jb Evain  <jbevain@novell.com>
336
337         * FileVersionInfo.cs: remove CAS checks for 2.1.
338
339 2007-08-03  Jb Evain  <jbevain@novell.com>
340
341         * Process.cs: disable StartExistCallbackIfNeeded in 2.1.
342
343 2007-08-03  Jb Evain  <jbevain@novell.com>
344
345         * ProcessThreadCollection.cs
346           ProcessModuleCollection.cs: use our own collection base
347           for the 2.1 profile, as ReadOnlyCollectionBase does not exist
348           in 2.1, and they are internalized by the linker.
349
350 2007-08-02  Atsushi Enomoto  <atsushi@ximian.com>
351
352         * EventLogTraceListener.cs : fixed wrong 2.0 dependency in 1.x.
353
354 2007-08-02  Atsushi Enomoto  <atsushi@ximian.com>
355
356         * EventLogTraceListener.cs : implemented.
357
358 2007-08-02  Atsushi Enomoto  <atsushi@ximian.com>
359
360         * EventLogImpl.cs
361           EventLog.cs
362           LocalFileEventLog.cs : Implemented EntryWritten event support.
363         * Win32EventLog.cs, NullEventLog.cs : they need stub overrides.
364         * EventLogEntry.cs : [MonitoringDescription].
365         * DiagnosticsConfigurationHandler.cs : [Obsolete]
366
367 2007-08-01  Atsushi Enomoto  <atsushi@ximian.com>
368
369         * DefaultTraceListener.cs : implemented AssertUiEnabled using MWF.
370
371 2007-08-01  Atsushi Enomoto  <atsushi@ximian.com>
372
373         * CounterSample.cs : implemented missing 2.0 equality stuff.
374         * CounterSampleCalculator.cs : static in 2.0.
375
376 2007-07-24 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
377
378         * Process.cs: use the default encoding or the windows input/output
379         encodings for the process input/output/error streams. Bug #80838 fixed.
380
381 2007-07-14 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
382
383         * Process.cs: don't send empty lines that are not in the input. Fixes
384         bug #79529.
385
386 2007-07-11  Ankit Jain  <jankit@novell.com>
387
388         * ProcessStartInfo.cs (WorkingDirectory.set): Don't set
389         working_directory to null.
390
391 2007-05-18  Atsushi Enomoto  <atsushi@ximian.com>
392
393         * TraceSourceInfo.cs : new class for storing configuration data.
394         * TraceSource.cs : TraceEventCache arguments should be null (they are
395           nullable). Use TraceSourceInfo above.
396         * DiagnosticsConfigurationHandler.cs : removed hack to store listeners
397           in named sources, not traceimpl. Create TraceSource objects from
398           configuration data.
399
400 2007-05-18  Marek Safar  <marek.safar@gmail.com>
401
402         * DiagnosticsConfigurationHandler.cs: Fixed 1.1 build.
403
404 2007-05-18  Atsushi Enomoto  <atsushi@ximian.com>
405
406         * XmlWriterTraceListener.cs : open file in shared r/w mode.
407         * DiagnosticsConfigurationHandler.cs : process <sharedListeners>
408           elements first, so that named listeners work fine.
409         * EventLogTraceListener.cs : added 2.0 stubs.
410         * CorrelationManager.cs : removed todo.
411
412 2007-05-18  Atsushi Enomoto  <atsushi@ximian.com>
413
414         * TraceListener.cs : in TraceTransfer(), use TraceEvent() (some
415           derived classes depend on this change).
416         * DelimitedListTraceListener.cs : implemented.
417
418 2007-05-18  Atsushi Enomoto  <atsushi@ximian.com>
419
420         * EventLogPermissionAccess.cs ProcessPriorityClass.cs
421           ProcessWindowStyle.cs ThreadWaitReason.cs TraceImpl.cs
422           Trace.cs ThreadPriorityLevel.cs EventLogEntryType.cs
423           PerformanceCounterPermissionAccess.cs PerformanceCounterType.cs
424           TraceListener.cs ThreadState.cs : cosmetic API fixes.
425         * SwitchAttribute.cs : implemented GetAll().
426
427 2007-05-17  Atsushi Enomoto  <atsushi@ximian.com>
428
429         * TraceOptions.cs : new enum.
430         * TraceListener.cs : support TraceOutputOptions. Fixed missing
431           NET_2_0 condition in TARGET_JVM section.
432         * TraceSwitch.cs, BooleanSwitch.cs :
433           Added missing constructors and OnValueChanged().
434         * Trace.cs, TraceImpl.cs :
435           Added CorrelationManager and UseGlobalLock.
436         * TraceEventCache.cs : initialize property values at construction.
437         * Switch.cs : added XmlIgnore on Attributes.
438
439 2007-05-15 Adar Wesley <adarw@mainsoft.com>
440
441         * Trace.cs: added missing method Refresh.
442
443 2007-05-14  Atsushi Enomoto  <atsushi@ximian.com>
444
445         * EventTypeFilter.cs
446           TraceFilter.cs
447           SourceFilter.cs
448           SwitchLevelAttribute.cs
449           DelimitedListTraceListener.cs
450           SwitchAttribute.cs : new files in 2.0.
451         * DiagnosticsConfigurationHandler.cs : partial support for named
452           shared listeners.
453         * XmlWriterTraceListener.cs : cosmetic corcompare fixes. Added
454           missing todos.
455         * TraceListener.cs : added missing 2.0 stuff. Implemented Filter.
456         * DefaultTraceListener.cs : trivial ComVisible fix.
457
458 2007-05-10  Atsushi Enomoto  <atsushi@ximian.com>
459
460         * TextWriterTraceListener.cs : open log file in readwrite share mode.
461           This fixes bug #81296.
462
463 2007-05-08 Igor Zelmanovich <igorz@mainsoft.com>
464
465         * TraceImpl.cs:
466         * TraceListener.cs:
467         for TARGET_JVM used Thread Local Storage istead 
468         Thread-Relative Static Fields 
469
470 2007-05-02  Jonathan Chambers  <joncham@gmail.com>
471
472         * Stopwatch.cs : Implement high performance stopwatch on windows.
473
474 2007-04-19  Atsushi Enomoto  <atsushi@ximian.com>
475
476         * XmlWriterTraceListener.cs : new file, implementated.
477         * TraceListener.cs : implemented 2.0 members.
478
479 2007-03-04  Vladimir Krasnov  <vlaimdirk@mainsoft.com>
480
481         * DiagnosticsConfigurationHandler.cs: removed configuration init in
482         TARGET_JVM since not supported
483
484 2007-02-02  Gert Driesen  <drieseng@users.sourceforge.net>
485
486         * EventLogImpl.cs: When no log name is specified, return zero-length
487         string for LogDisplayName.
488
489 2007-01-28 Ilya Kharmatsky <ilyak -at- mainsoft.com>
490
491         * TraceEventCache.jvm.cs: added as a stub class.
492
493 Tue Jan 23 17:19:13 CET 2007 Paolo Molaro <lupus@ximian.com>
494
495         * ProcessStartInfo.cs: put the fields in the order expected
496         by the runtime code.
497
498 2007-01-18  Atsushi Enomoto  <atsushi@ximian.com>
499
500         * Switch.cs : added missing .ctor(), Attributes, Value, 
501           GetSupportedAttributes() and OnValueChanged().
502         * DiagnosticsConfigurationHandler.cs : added some hacky handler for
503           new "sources" element. Don't wrap another ConfigurationException.
504         * TraceListener.cs : added missing trace methods.
505         * TraceSource.cs, SourceLevels.cs, CorrelationManager.cs,
506           TraceEventCache.cs, TraceEventType.cs, SourceSwitch.cs:
507           added missing 2.0 stuff, mostly just stubs.
508
509 2007-01-12  Miguel de Icaza  <miguel@novell.com>
510
511         * Trace.cs: Add a number of 2.0 overloads.
512
513 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
514
515         * Process.cs: Allow GetProcesses and GetProcessById overloads with 
516         machine name to work for local machine.
517
518 2006-12-29  Robert Jordan  <robertj@gmx.net>
519
520         * TraceImpl.cs (Assert): Include line numbers in the stack trace
521         emitted by Assert (). Fixes bug #80400.
522
523 Thu Dec 14 20:24:09 CET 2006 Paolo Molaro <lupus@ximian.com>
524
525         * Process.cs: if a process object is restarted, close the
526         previous process handle (bug #80143).
527
528 2006-11-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
529
530         * Process.cs: the Process returned by the static Start method never had
531         the right ProcessStartInfo. Fixes bug #80019.
532
533 2006-10-13  Atsushi Enomoto  <atsushi@ximian.com>
534
535         * DiagnosticsConfigurationHandler.cs : be more skeptic on
536           broken configuration file.
537
538 2006-09-28 Andrew Skiba <andrews@mainsoft.com>
539
540         * DefaultTraceListener.cs: TARGET_JVM
541
542 2006-09-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
543
544         * Process.cs: fix operation number to be 8. The other one was working
545         because the default is to wait for input on the file descriptor.
546
547 2006-09-05  Gert Driesen  <drieseng@users.sourceforge.net>
548
549         * Win32EventLog.cs: Removed workarounds for bug #79152 and bug #79117
550         now that these have been fixed. Release unmanaged memory that was
551         allocated for replacement strings.
552
553 2006-08-27  Gert Driesen  <drieseng@users.sourceforge.net>
554
555         * NullEventLog.cs: Added dummy GetLogNames implementation.
556         * EventLogImpl.cs: Moved GetEventLogs implementation to base class.
557         Added abstract GetLogNames method. Added ValidateCustomerLogName
558         method which should be called by eventlog providers when creating a
559         new log to ensure the significant part of the log name is unique, does
560         not match any of the special log names and does not match an exist event
561         source.
562         * Win32EventLog.cs: Validate customer log name when creating new log.
563         Moved GetEventLogs implementation to base class. Added GetLogNames
564         method.
565         * LocalFileEventLog.cs: Merged CreateLogStore into CreateEventSource.
566         Validate customer log name when creating new log. Moved GetEventLogs
567         implementation to base class. Added GetLogNames method.
568
569 2006-08-26  Gert Driesen  <drieseng@users.sourceforge.net>
570
571         * Win32EventLog.cs: Fixed error messages. Use RegisterEventSource
572         pinvoke when opening eventlog for writing entries.
573
574 2006-08-26  Gert Driesen  <drieseng@users.sourceforge.net>
575
576         * Win32EventLog.cs: Added and documented workarounds for bug #79117
577         and bug #79152.
578
579 2006-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
580
581         * LocalFileEventLog.cs: When event log store does not exist, then we
582         do not need to perform a case-insensitive lookup of the log name.
583
584 2006-08-20  Gert Driesen  <drieseng@users.sourceforge.net>
585
586         * EventLog.cs: Removed namespace import.
587         * EventInstance.cs: Added range checks and check whether specified
588         entry type is defined.
589
590 2006-08-20  Gert Driesen  <drieseng@users.sourceforge.net>
591
592         * EventLogEntry.cs: Added InstanceId property (2.0 only). Moved
593         Obsolete attribute to correct property.
594         * EventSourceCreationData.cs: Updated copyright. For internal ctor,
595         set log name to "Application" if value is null or zero-length string.
596         * EventLogImpl.cs: EventImpl now acts as base class for event log 
597         implemenations.
598         * NullEventLog.cs: Modified to implement new abstract methods of base
599         class. Removed factory class.
600         * EventLog.cs: EventLog implementation that delegates just about 
601         everything to individual eventlog providers. To specify the event log
602         implementation to use, the MONO_EVENTLOG_TYPE environment variable can
603         be used. Possible values are:
604         - win32 : read/write entries using the native win32 eventlog
605         - local[:path] : read/write entries as files to a local directory
606         - null : silently ignore all entries
607         The default is "null" on unix (and versions of Windows before NT,
608         meaning Windows 98, ...), and "win32" on Windows NT (and higher).
609         When "the local" implementation is used, the directory in which to 
610         store the event logs, event sources and entries can be specified as 
611         part of MONO_EVENTLOG_TYPE environment variable using the syntax 
612         "local:<path>" (eg. local:/home/myuser/mono/eventlog).
613         * LocalFileEventLog.cs: Event log implementation which uses a local
614         file store. The directory to use for persistence can be specified
615         as part of the MONO_EVENTLOG_TYPE environment variable (see above).
616         If that directory is not explicitly set, then the following directory
617         will be used for storing eventlog entries:
618         - windows       : %APPDATA%\mono\eventlog
619         - unix          : /var/lib/mono/eventlog
620         On unix, the directory permission for individual eventlog log 
621         directories will be set to 777 (with +t bit) allowing everyone to
622         read and write eventlog entries while only allowing entries to be
623         deleted by the user(s) that created them.
624         Format of log files was modified to allow it contain all necessary
625         information for an event log entry.
626         * Win32EventLog.cs: Event log implementation for Windows NT and 
627         higher which uses the Win32 native event log for reading/writing
628         eventlog entries, and which uses the registry to store event log and
629         event source registration information.
630         * EventLogEntryCollection.cs: Delegate implementation to event log
631         implementation. Use lazy init for enumerating entries. Cache current
632         item in 2.0 profile.
633
634 2006-08-14  Atsushi Enomoto  <atsushi@ximian.com>
635
636         * LocalFileEventLog.cs : change lengthy environment variable name.
637           MONO_LOCAL_EVENTLOG_PATH -> MONO_EVENTLOG_PATH.
638
639 2006-08-14  Atsushi Enomoto  <atsushi@ximian.com>
640
641         * EventLogImpl.cs, EventLogEntryCollection.cs, EventLog.cs :
642           some rework to support actual event log implementations.
643         * NullEventLog.cs, LocalFileEventLog.cs :
644           new files. The former (default) implementation does nothing for
645           any event log features. The latter implements local file based
646           event logs.
647
648 2006-08-14  Atsushi Enomoto  <atsushi@ximian.com>
649
650         * UnixEventLog.cs, EventLogEntry.cs, EventSourceCreationData.cs,
651           EventLogImpl.cs, Win32EventLog.cs, EventLogEntryCollection.cs,
652           EventLog.cs:
653           Reverted previous two changes that does not work at all.
654
655 2006-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
656
657         * EventLog.cs: For now, Use null implementation.
658
659 2006-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
660
661         * EventLogEntry.cs: Added InstanceId property (2.0 only). Moved
662         Obsolete attribute to correct property.
663         * EventSourceCreationData.cs: Updated copyright. For internal ctor,
664         set log name to "Application" if value is null or zero-length string.
665         * EventLogImpl.cs: EventImpl now acts as base class for event log 
666         implemenations. Added NullEventLog implementation, which is not used
667         at the moment.
668         * EventLog.cs: EventLog implementation that uses registry for
669         keeping track of logs and sources to match .NET (and Windows). When
670         running on Windows NT (and higher), event entries are written to
671         the native win32 event log.  Reading event entries is not yet working
672         for Windows. On linux, we use a local file store (based on patch by 
673         Atsushi).
674         * UnixEventLog.cs: Event log implementation for linux which uses a
675         local file store.
676         * Win32EventLog.cs: Event log implementation for Windows NT and 
677         higher which uses the Win32 native event log.
678         * EventLogEntryCollection.cs: Delegate implementation to event log
679         implemenation. Use lazy init for enumerating entries.
680
681 2006-08-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
682
683         * Process.cs: reset the 'start' time if we wait for stdout reading to
684         be completed.
685
686 2006-08-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
687
688         * Process.cs: add support for 2.0 asynchronous reads on stdout and
689         stderr.
690
691 2006-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
692
693         * EventSourceCreationData.cs: Marked ctor internal, and removed ctor.
694         Throw ArgumentOutOfRangeException if negative value for CategoryCount
695         is set.
696
697 2006-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
698
699         * EventInstance.cs: Added 2.0 class.
700         * EventSourceCreationData.cs: Added 2.0 class.
701         * OverflowAction.cs: Added 2.0 enum.
702
703 2006-07-31  Sebastien Pouliot  <sebastien@ximian.com>
704
705         * EventLogEntry.cs: Add a linkdemand for unrestricted on class.
706         * EventLogTraceListener.cs: Add a linkdemand for unrestricted on class
707         * FileVersionInfo.cs: Add a linkdemand for unrestricted on class. Add
708         an imperative demand for FileIOPermission.Read on GetVersionInfo 
709         method. Change ToString method to use a StringBuilder.
710         * PerformanceCounterCategory.cs: Add a linkdemand for unrestricted on
711         class.
712         * PerformanceCounterManager.cs: Add a linkdemand for unrestricted on 
713         class. Add [Obsolete] for NET_2_0 profile.
714         * Process.cs: Add a linkdemand and an inheritancedemand for 
715         unrestricted on class.
716         * ProcessStartInfo.cs: Add a linkdemand for unrestricted on class.
717
718 2006-07-16  Andrew Skiba <andrews@mainsoft.com>
719
720         * Process.cs: throw FileNotFoundException earlier; give more
721         diagnostics.
722
723 2006-05-16  Dick Porter  <dick@ximian.com>
724
725         * Process.cs: Dispose the handle from a destructor too
726
727 2006-04-04  Atsushi Enomoto  <atsushi@ximian.com>
728
729         * Stopwatch.cs:
730           Zoltan was quicker to add it, here I put my implementation ;-)
731         * Process.cs :
732           Added some missing long members (not implemented anyways).
733         * DataReceivedEventHandler.cs DataReceivedEventArgs.cs :
734           added new 2.0 types.
735
736 2006-04-01  Zoltan Varga  <vargaz@gmail.com>
737
738         * Stopwatch.cs: New file.
739
740 2006-03-31  Zoltan Varga  <vargaz@gmail.com>
741
742         * Debug.cs: Add net 2.0 Print methods.
743
744 2006-03-03  Dick Porter  <dick@ximian.com>
745
746         * Process.cs: Close redirected pipes on errors.  Fixes bug 77514.
747
748 2006-01-12  Ben Maurer  <bmaurer@andrew.cmu.edu>
749
750         * ConsoleTraceListener.cs: New 2.0 class
751
752 2005-11-17  Dick Porter  <dick@ximian.com>
753
754         * Process.cs: Split Start_common into Start_shell and
755         Start_noshell, which call ShellExecuteEx and CreateProcess
756         respectively.  Fixes bug 76670.
757
758 2005-09-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
759
760         * Process.cs: deal with the fact that someone can enable raising events
761         and/or registed a Exited delegate before and *after* Start is called for
762         the process. Only queue the exit callback in the threadpool when it's
763         possible and requested. Fixes bug #76129.
764
765 2005-08-09  Gert Driesen <drieseng@users.sourceforge.net>
766
767         * EventLog.cs: Fixed Designer attribute to match MS.NET.
768         * ICollectData.cs: Added marshalling attribute to match MS.NET.
769         * PerformanceCounter.cs: Fixed Designer attribute to match MS.NET.
770         * Process.cs: Fixed Designer attribute to match MS.NET, modified
771         * ProcessModule.cs: Fixed Designer attribute to match MS.NET.
772         * ProcessThread.cs: Fixed Designer attribute to match MS.NET.
773         DesignerSerializationVisibility on StartInfo to match MS.NET, changed
774         Category attribute on Exited event to match MS.NET.
775
776 2005-06-09  Gert Driesen <drieseng@users.sourceforge.net>
777
778         * TraceImpl.cs: Adjust internal indentlevel and indentsize before 
779         passing on to listeners. Fixes some test failures.
780
781 2005-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
782
783         * DefaultTraceListener.cs: s/MONO_TRACE/MONO_TRACE_LISTENER/. The
784         runtime uses MONO_TRACE too...
785
786 2005-05-31  Sebastien Pouliot  <sebastien@ximian.com>
787
788         * PerformanceCounterPermissionEntry.cs: Added more 2.0 validations for
789         machine names and PerformanceCounterPermissionAccess.
790
791 2005-02-22 Jonathan Pryor  <jonpryor@vt.edu>
792
793         * TraceImpl.cs: More Thread-safety fixes.  I have to lock on
794           Listeners.SyncRoot as we're traversing the collection and can't let the
795           collection change from underneath us while we're iterating over it
796           (alternately, we could clone the collection and iterate over the clone
797           without having locking issues -- assuming we had a lock-free clone -- 
798           but this would kill the GC).  Fixes 69964.  Only define lock_ if we're 
799           using the lock-free initialization routine; it's not used otherwise.
800
801 2005-01-18 Jonathan Pryor  <jonpryor@vt.edu>
802
803         * DiagnosticsConfigurationHandler.cs (DiagnosticsConfiguration): 
804           Use a lock-free algorithm for creating the settings information.
805         * TraceImpl.cs (InitOnce): Use a lock-free algorithm for creating the
806           listeners collection and initializing the world.
807
808 2005-01-18 Jonathan Pryor  <jonpryor@vt.edu>
809
810         * DiagnosticsConfigurationHandler.cs (DiagnosticsConfiguration): Don't 
811           read the .config file from the static ctor (again), as if it fails we'll 
812           get a TypeLoadException -- bad!  Instead, lazy-read the .config file.
813         * DiagnosticsConfigurationHandler.cs (DiagnosticsConfigurationHandler): 
814           Require that the /switch/add/@value attribute contains only numeric values.
815         * TraceImpl.cs: Don't initialize everything in the static ctor, as if it
816           fails (due to an invalid .confg file) we get a TypeLoadException, while
817           .NET generates a ConfigurationException.  Instead, initialize everything
818           the first time the Listeners property is accessed, which allows the static
819           ctor to run without chance of failure, avoiding the TypeLoadException.
820         * TraceListenerCollection.cs: This should be thread-safe, as it's accessible
821           from a static member of TraceImpl (available through the public Debug and 
822           Trace classes).
823         * Switch.cs: Leave the original switch value alone.  If it isn't valid 
824           (i.e. numeric), the DiagnosticsConfigurationHandler will catch it.
825
826 2005-01-17 Jonathan Pryor  <jonpryor@vt.edu>
827
828         * DiagnosticsConfigurationHandler.cs: The /switch/add/@value attribute 
829           isn't optional under .NET 1.1, so make sure it exists.
830
831 2005-01-13 Jonathan Pryor  <jonpryor@vt.edu>
832
833         * DiagnosticsConfigurationHandler.cs: Make DiagnosticsConfiguration.Settings
834           thread-safe (double-checked locking isn't thread safe on .NET without
835           using a volatile variable, and setting the variable in the static
836           constructor is easier anyway).
837         * Switch.cs (GetConfigFileSetting): If the setting is non-numeric, set the
838           attribute value to the string "0".  This is apparently what .NET 1.1 does,
839           and allows the SwitchTest NUnit test to work w/o failures.
840
841 2004-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
842
843         * Process.cs: always pass the same arguments to the runtime.
844
845 2004-09-11  Sebastien Pouliot  <sebastien@ximian.com>
846
847         * EventLogPermission.cs: Completed implementation.
848         * EventLogPermissionAccess.cs: Fixed enum values.
849         * EventLogPermissionEntry.cs: Added validation for machine names.
850         * EventLogPermissionEntryCollection.cs: Added synchronization
851         of entries with the base permission class.
852         * PerformanceCounterPermission.cs: Completed implementation.
853         * PerformanceCounterPermissionAccess.cs: Fixed enum values.
854         * PerformanceCounterPermissionEntry.cs: Added validations for machine
855         and category names.
856         * PerformanceCounterPermissionEntryCollection.cs: Added synchronization
857         of entries with the base permission class.
858
859 2004-09-10  Sebastien Pouliot  <sebastien@ximian.com>
860
861         * EventLogPermission.cs: Fixed initialization (TagNames and
862         PermissionAccessType).
863         * EventLogPermissionAccess.cs: Added new enums for NET_2_0 and added 
864         [Obsolete] to some existing elements.
865         * EventLogPermissionAttribute.cs: Added missing validation to property
866         MachineName. Fixed changes for NET_2_0.
867         * PerformanceCounterPermission.cs: Fixed initialization (TagNames and
868         PermissionAccessType).
869         * PerformanceCounterPermissionAccess.cs: Added new enums for NET_2_0
870         and added [Obsolete] to some existing elements.
871         * PerformanceCounterPermissionAttribute.cs: Added missing validations
872         to properties (Path, MachineName). Fixed changes for NET_2_0.
873
874 2004-09-07  Dick Porter  <dick@ximian.com>
875
876         * Process.cs: Throw documented exceptions when getting stdin,
877         stdout or stderr and they haven't been redirected.  Check that
878         CreatePipe didn't fail, throw exceptions if it did.  Close
879         redirected streams when the process is disposed, rather than rely
880         on the GC disposing them later.  Makes timeline much happier,
881         because it could run out of file descriptors between GC
882         collections.
883
884 2004-09-06  Dick Porter  <dick@ximian.com>
885
886         * Process.cs: Make Dispose() actually dispose things.
887
888 2004-06-24  Atsushi Enomoto  <atsushi@ximian.com>
889
890         * Process.cs : quick fix for UseShellExecute=false on windows. See
891           the code comment.
892
893 2004-06-17  Lluis Sanchez Gual  <lluis@ximian.com>
894
895         * Process.cs: Added missing check in HasExited property.
896
897 2004-05-20  Gert Driesen (drieseng@users.sourceforge.net)
898
899         * EventLogPermissionAttribute.cs:
900         * PerformanceCounterPermissionAttribute.cs: adjust AllowMultiple
901         and Inherited to match .NET
902
903 2004-05-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
904
905         * Process.cs: separate the command and the arguments when calling
906         Start_internal.
907
908 2004-05-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
909
910         * Process.cs: redirecting I/O is not permitted if UseShellExecute is
911         true. Also throw if FileName is null.
912
913 2004-04-06  Lluis Sanchez Gual  <lluis@ximian.com>
914
915         * DiagnosticsConfigurationHandler.cs: If initializeData is provided,
916         use the constructor that only takes one string as parameter to
917         construct the listener. The name is set using the Name property, not the
918         constructor.
919         
920         * TextWriterTraceListener.cs: In Write*, do nothing if no writer was 
921         provided.
922
923 2004-03-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
924
925         * Process.cs: use the ISynchronizeInvoke object to invoke the event.
926         Implemented Close, CloseMainWindow and Kill.
927
928 2004-03-23 Ben Maurer  <bmaurer@users.sourceforge.net>
929
930         * Switch.cs: Don't throw when there is no switches section.
931
932 2004-03-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
933
934         * Process.cs: support EnableRaisingEvents + Exited event.
935
936 2004-03-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
937
938         * Process.cs: patch by Gert Driesen that fixes WaitForExit when the
939         timeout is int.MaxValue.
940
941 2004-03-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
942
943         * Process.cs: added environment variables setting support and also
944         send useShellExecute to the runtime.
945
946         * ProcessStartInfo.cs: support EnvironmentVariables.  MS uses
947         StringDictionary, which turns keys into lowercase. We don't do that.
948
949 2004-02-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
950
951         * Process.cs: ExitCode and ExitTime check that the process is finished.
952
953 2003-12-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
954
955         * Process.cs: if there's an error when starting the process, the 'pid'
956         field contains the GetLastError code. Use that for the Win32Exception.
957
958 2003-12-06  Martin Baulig  <martin@ximian.com>
959
960         * DefaultTraceListener: Don't use `where' in variable names.
961
962 2003-11-13  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
963
964         * ICollectData.cs: Fixed signature
965
966 2003-11-12  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
967
968         * ICollectData.cs: Added missing attribute
969
970 2003-07-27  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
971
972         * SRDescriptionAttribute.cs: Moved to System directory
973
974 2003-07-21  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
975
976         * EventLog.cs: Implementation handling
977         * EventLogImpl.cs: Added, contains an platform independent empty implementation
978         for EventLog
979
980 2003-07-18  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
981
982         * AlphabeticalEnumConverter.cs: Added
983         * EventLogEntry.cs: Implemented
984         * EventLogPermissionEntryCollection.cs: Fixed signature and implementation of indexer
985         * EventLogTraceListener.cs: Fixed signature
986         * PerformanceCounter.cs: Added missing attribute
987         * PerformanceCounterType.cs: Added missing attribute
988         * SRDescriptionAttribute.cs: Added and implemented
989
990 2003-07-17  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
991
992         * CounterCreationData.cs:
993         * EventLog.cs:
994         * EventLogEntry.cs:
995         * PerformanceCounter.cs:
996         * Process.cs:
997         * ProcessModule.cs:
998         * ProcessStartInfo.cs:
999         * ProcessThread.cs: Reworked attributes based on the new Consts scheme
1000
1001 2003-07-14  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1002
1003         * PerformanceCounterCategory.cs: Fixed signatures
1004
1005 2003-07-13  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1006
1007         * PerformanceCounter.cs: Implemented or implementation added
1008
1009 2003-07-13  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1010
1011         * DiagnosticsConfigurationHandler.cs: Removed a never used variable
1012         * EventLog.cs: Small update to prevent a warning
1013         * EventLogPermission.cs: Implemented or implementation added
1014         * EventLogPermissionAttribute.cs: Implemented or implementation added
1015         * EventLogPermissionEntry.cs: Implemented or implementation added
1016         * EventLogPermissionEntryCollection.cs: Implemented or implementation added
1017         * EventLogTraceListener.cs: Implemented or implementation added
1018         * PerformanceCounterManager.cs: Implemented or implementation added
1019         * PerformanceCounterInstaller.cs: Made internal
1020         * PerformanceCounterCategory.cs: Implemented few members
1021         * PerformanceCounterPermission.cs: Implemented or implementation added
1022         * PerformanceCounterPermissionAttribute.cs: Implemented or implementation added
1023         * PerformanceCounterPermissionEntry.cs: Implemented or implementation added
1024         * PerformanceCounterPermissionEntryCollection.cs: Implemented or implementation added
1025         
1026 2003-07-07  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1027
1028         * EventLog.cs: Removed unneccesary attribute according to corecompare
1029         * EventLogEntry.cs: Removed unneccesary attribute according to corecompare
1030         * Process.cs: Removed unneccesary attributes according to corecompare, added attribute
1031         * ProcessModule.cs: Removed unneccesary attribute according to corecompare
1032         * ProcessStartInfo.cs: Removed unneccesary attribute according to corecompare
1033         * ProcessThread.cs: Removed unneccesary attribute according to corecompare, fixed signature
1034
1035 2003-07-05  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1036
1037         * InstanceDataCollectionCollection.cs: Corrected wrong signature
1038         * EventLog.cs: Missing attributes added, redirected some class members
1039         * EventLogEntry.cs: Missing attributes added
1040         * EventLogInstaller.cs: Made internal
1041         
1042 2003-07-02  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1043
1044         * CounterCreationData.cs: Added missing attributes
1045         * CounterSample.cs: Implemented missing rest, fixed signature
1046         * CounterSampleCalculator.cs: Added private constructor, redirected function
1047         * Process.cs: Added attributes, added event mechanism
1048         * ProcessModule.cs: Added missing attributes
1049         * ProcessModuleCollection.cs: Redone using the already inherited-from ArrayList. Simplifies this a LOT
1050         * ProcessStartInfo.cs: Added missing attributes, moved internal fields to the begining of the file, restyling
1051         * ProcessThread.cs: Added missing attributes, added pseudo constructor
1052         * ProcessThreadCollection.cs: Implemented
1053         * PerformanceCounterPermission.cs: Fixed typo in class name
1054         * PerformanceCounterPermissionAccess.cs: Added attributes, fixed wrong member
1055         
1056 2003-03-19  Dick Porter  <dick@ximian.com>
1057
1058         * Process.cs: Implement HasExited, fixes bug 39267
1059
1060 2003-03-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1061
1062         * Process.cs: throw an exception when the executable cannot be found.
1063
1064 2002-12-20  Jonathan Pryor <jonpryor@vt.edu>
1065         * DiagnosticsConfigurationHandler.cs: 
1066           - Don't assume that optional attributes are always present
1067           - <assert/> can't have any child nodes
1068           - Change in semantics: if the attribute isn't present,
1069             GetAttribute() returns null, not "".  This allows us to
1070             differentiate between an attribute not being present and an
1071             attribute with an empty value.
1072           - Translate exceptions if a TraceListener type is invalid
1073
1074 2002-12-19  Jonathan Pryor <jonpryor@vt.edu>
1075         * TraceListenerCollection.cs: IndentLevel and IndentSize shouldn't be 
1076           hardcoded; they should be set to whatever TraceImpl is using (which
1077           in turn may have been set by the .config file, so we should get the
1078           user-specified values in added listeners).
1079         * TraceListener.cs: Make sure that indents are initially written.  This 
1080           allows code that uses Trace.Indent() before a Trace.WriteLine() to be 
1081           indented properly.
1082         * TraceImpl.cs: provide a static constructor to explicitly specify the
1083           ordering of initialization, in particular the ordering of
1084           TraceImpl.Listeners and the reading of the .config file (by
1085           accessing DiagnosticsConfiguration.Settings).  This (hopefully)
1086           ensures that the Listeners collection is initialized before the
1087           .config file is read in, as the DiagnosticsConfigurationHandler will
1088           directly modify the listeners collection.
1089           The DiagnosticsConfigurationHandler assumes this so that it can
1090           <add/> and <remove/> trace listeners and set the logfile for the
1091           DefaultTraceListener.
1092
1093
1094 2002-12-18  Jonathan Pryor <jonpryor@vt.edu>
1095         * BooleanSwitch.cs: Complete re-write.  It works now.
1096         * DefaultTraceListener.cs:
1097           - Use `const' strings, so I don't worry about copy/paste errors
1098           - Give `AssertUiEnabled' an actual backing member
1099         * DiagnosticsConfigurationHandler.cs: To avoid race conditions, let the
1100           configuration handler set .config-specified properties on
1101           DefaultTraceListener (AssertUiEnabled, LogFileName) and TraceImpl
1102           (AutoFlush, IndentSize).
1103         * Switch.cs: Near complete re-write.  Actually works, and is (should be)
1104           comformant with .NET behavior.  Changed member names because they
1105           were confusing me.  (Yes, that doesn't say much about my memory.)
1106         * TextWriterTraceListener.cs: Append text to already existing files,
1107           don't overwrite them.
1108         * TraceImpl.cs:
1109           - Added private destructor, to ensure no instances are created.
1110           - Move members declarations to be closer to each other.
1111         * TraceSwitch.cs: Complete re-write.  It works now.
1112
1113 2002-12-17  Jonathan Pryor <jonpryor@vt.edu>
1114         * DiagnosticsConfigurationHandler.cs: Implement so that .config files
1115         support <system.diagnostics> sections.
1116
1117 2002-12-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1118
1119         * DefaultTraceListener.cs: now OutputDebugStringW is called from an
1120         internal call (update your runtime!). No more warnings in linux.
1121
1122 2002-10-31  Dick Porter  <dick@ximian.com>
1123
1124         * Process.cs: MonoIO methods now have an error parameter
1125
1126 2002-10-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1127
1128         * DefaultTraceListener.cs: changed OutputDebugString to
1129         OutputDebugStringW (no more warnings under windows). Also a few style
1130         fixes.
1131
1132 2002-10-23  Dick Porter  <dick@ximian.com>
1133
1134         * Process.cs: Redirected standard input needs to have AutoFlush set
1135
1136 2002-09-27  Dick Porter  <dick@ximian.com>
1137
1138         * Process.cs: Implemented {get_,set_}{Min,Max}WorkingSet,
1139         ProcessName, GetProcessById, GetProcesses, GetProcessesByName.
1140         Pass the working directory to Start.  Pass the program and args in
1141         one string to be used with the second arg of CreateProcess, so it
1142         will search the path.
1143
1144 2002-09-19  Nick Drochak <ndrochak@gol.com>
1145
1146         * TraceImpl.cs: Remove debug prints
1147
1148 2002-09-19  Nick Drochak <ndrochak@gol.com>
1149
1150         * TraceListenerCollection.cs: Set Indet level and size to default 
1151         values.  The values from TraceImpl might have been changed.
1152
1153 2002-08-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1154
1155         * Process.cs:
1156         * TextWriterTraceListener.cs: IDisposable fixes.
1157
1158 2002-08-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1159
1160         * Process.cs: class status based fixes.
1161
1162 2002-07-20  Dick Porter  <dick@ximian.com>
1163
1164         * Process.cs: Implement file handle redirection
1165
1166 2002-07-13  Jonathan Pryor <jonpryor@vt.edu>
1167         * CounterCreationData.cs: Implemented
1168         * CounterCreationDataCollection.cs: Implemented
1169         * CounterSample.cs: Stubbed Out
1170         * CounterSampleCalculator.cs: Stubbed Out
1171         * InstanceData.cs: Implemented
1172         * InstanceDataCollection.cs: Implemented
1173         * InstanceDataCollectionCollection.cs: Implemented
1174         * MonitoringDescriptionAttribute.cs: Implemented
1175         * PerformanceCounter.cs: Stubbed Out
1176         * PerformanceCounterCategory.cs: Stubbed Out
1177         * PerformanceCounterInstaller.cs: Stubbed Out
1178         * PerformanceCounterManager.cs: Stubbed Out
1179         * PerformanceCounterPermission.cs: Stubbed Out
1180         * PerformanceCounterPermissionAccess.cs: Implemented
1181         * PerformanceCounterPermissionAttribute.cs: Stubbed Out
1182         * PerformanceCounterPermissionEntry.cs: Stubbed Out
1183         * PerformanceCounterPermissionEntryCollection.cs: Implemented
1184         * PerformanceCounterType.cs: Implemented
1185
1186
1187 2002-06-25  Dick Porter  <dick@ximian.com>
1188
1189         * Process.cs: Process forking and waiting, and some support functions
1190
1191         * ProcessStartInfo.cs: Implemented the bits needed for basic
1192         Process forking
1193
1194         * ProcessModule.cs: Implemented
1195
1196         * ProcessModuleCollection.cs: Mostly implemented
1197
1198         * FileVersionInfo.cs: Implemented
1199
1200 2002-06-16  Jonathan Pryor <jonpryor@vt.edu>
1201         * ICollectData.cs: Implemented
1202         * TraceImpl.cs: Setting IndentLevel, IndentSize should change the
1203                 corresponding properties on all current TraceListeners.
1204                 Also, to answer the FIXME message: Yes, the properties in TraceListener
1205                 need to be [ThreadStatic] as well.
1206         * TraceListenerCollection.cs: When adding a TraceListener, the TraceListener
1207                 should have its properties set to the current TraceImpl property values.
1208         * TraceListener.cs: Make indentSize, lndentLevel [ThreadStatic].
1209
1210 2002-06-09  Jonathan Pryor <jonpryor@vt.edu>
1211         * EntryWrittenEventArgs.cs: Implemented
1212         * EntryWrittenEventHandler.cs: Implemented
1213         * EventLog.cs: Stubbed out
1214         * EventLogEntry.cs: Stubbed out
1215         * EventLogEntryCOllection.cs: Implemented.
1216         * EventLogEntryType.cs: Implemented
1217         * EventLogInstaller.cs: Stubbed out
1218         * EventLogPermission.cs: Stubbed out
1219         * EventLogPermissionAccess.cs: Implemented
1220         * EventLogPermissionAttribute.cs: Stubbed out
1221         * EventLogPermissionEntry.cs: Stubbed out
1222         * EventLogPermissionEntryCollection.cs: Stubbed out
1223         * EventLogTraceListener.cs: Stubbed out
1224
1225 2002-05-29  Jonathan Pryor <jonpryor@vt.edu>
1226   * DefaultTraceListener.cs: Implemented MONO_TRACE support
1227
1228 2002-05-27  Jonathan Pryor <jonpryor@vt.edu>
1229   * Moved public API documentation for the following files to the
1230     /mcs/docs/apidocs/xml/en/System.Diagnostics directory:
1231     - Debug.cs
1232     - DefaultTraceListener.cs
1233     - DiagnosticsConfigurationHandler.cs
1234     - Switch.cs
1235     - TextWriterTraceListener.cs
1236     - Trace.cs
1237     - TraceLevel.cs
1238     - TraceListener.cs
1239     - TraceListenerCollection.cs
1240     - TraceSwitch.cs
1241
1242 2002-04-10  Jonathan Pryor <jonpryor@vt.edu>
1243
1244         * TraceListenerCollection.cs: Corrected indexer property to provide the
1245                 correct return value and implement the IList indexer property correctly.
1246
1247 2002-04-07  Jonathan Pryor <jonpryor@vt.edu>
1248
1249         * TraceListener.cs: Fix stack overflow bug
1250         * DefaultTraceListener.cs: Implement log file support
1251
1252 2002-04-04  Dick Porter  <dick@ximian.com>
1253
1254         * ThreadWaitReason.cs:
1255         * ThreadState.cs:
1256         * ThreadPriorityLevel.cs:
1257         * ProcessWindowStyle.cs:
1258         * ProcessThreadCollection.cs
1259         * ProcessThread.cs:
1260         * ProcessStartInfo.cs:
1261         * ProcessModuleCollection.cs: Stub out more classes needed for Process
1262
1263 2002-03-31  Dick Porter  <dick@ximian.com>
1264
1265         * Process.cs: 
1266         * ProcessPriorityClass.cs: 
1267         * ProcessModule.cs: 
1268         * FileVersionInfo.cs: Stub out classes needed for Process
1269
1270 2002-03-08  Jonathan Pryor <jonpryor@vt.edu>
1271
1272         * Debug.cs: Clean up (lots of code can be shared with Trace.cs, which 
1273                 is why TraceImpl.cs is introduced), "DEBUG" conditional support
1274         * TraceListener.cs: Proper implementation of Dispose pattern;
1275                 implementatino of non-abstract methods in terms of abstract methods
1276         * TraceListenerCollection.cs: check 'object' types before adding
1277         * TextWriterTraceListener.cs: properly implement Dispose pattern;
1278                 handle NeedIndent and WriteIndent
1279         * Trace.cs: new file; provides Trace functionality, "TRACE" conditional
1280                 support
1281         * DefaultTraceListener.cs: new file; the default trace listener
1282
1283 2002-01-17  Miguel de Icaza  <miguel@ximian.com>
1284         * TraceListenerCollection.cs: Remove Warnings.
1285
1286 2002-01-06  Ravi Pratap  <ravi@ximian.com>
1287         * Switch.cs, TraceListenerCollection.cs : Decorate incomplete bits
1288         with the MonoTODO attribute.
1289
1290 2002-01-04  John R. Hicks <angryjohn69@nc.rr.com>
1291         * Added Debug.cs to the build.
1292
1293 2002-01-04  John R. Hicks <angryjohn69@nc.rr.com>
1294         * Added preliminary TraceListenerCollection.cs to the build.
1295
1296 2002-01-04  John R. Hicks <angryjohn69@nc.rr.com>
1297         * Added TraceListener.cs, TextWriterTraceListener.cs, and
1298         DefaultTraceListener.cs to the build and moved them into the
1299         proper assembly.
1300
1301 2002-01-04  John R. Hicks <angryjohn69@nc.rr.com>
1302         * Added DiagnosticsConfigurationHandler.cs to the build.
1303
1304 2001-09-09  Nick Drochak <ndrochak@gol.com>
1305         * BooleanSwitch.cs: Make this class use it's parent class's features.  Namely, use SwitchSetting
1306         so that we can get OnSwitchSettingChanged() to fire for free.
1307
1308 2001-09-09  Nick Drochak <ndrochak@gol.com>
1309         * ChangeLog: added this file
1310         * Switch.cs: call OnSwitchSettingChanged() when the switch setting is, yes you gessed it, changed.