2004-06-09 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System / System.Diagnostics / EventLogTraceListener.cs
1 //
2 // System.Diagnostics.EventLogTraceListener.cs
3 //
4 // Authors:
5 //   Jonathan Pryor (jonpryor@vt.edu)
6 //   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
7 //
8 // (C) 2002 Jonathan Pryor
9 // (C) 2003 Andreas Nahr
10 //
11
12
13 using System;
14 using System.Collections;
15 using System.Diagnostics;
16
17 namespace System.Diagnostics 
18 {
19
20         public sealed class EventLogTraceListener : TraceListener 
21         {
22                 private EventLog eventLog;
23                 private string source;
24
25                 public EventLogTraceListener ()
26                 {
27                 }
28
29                 public EventLogTraceListener (EventLog eventLog)
30                 {
31                         this.eventLog = eventLog;
32                 }
33
34                 public EventLogTraceListener (string source)
35                 {
36                         this.source = source;
37                 }
38
39                 public EventLog EventLog {
40                         get {return eventLog;}
41                         set {eventLog = value;}
42                 }
43
44                 public override string Name {
45                         get {return source;}
46                         set {source = value;}
47                 }
48
49                 [MonoTODO]
50                 public override void Close ()
51                 {
52                         throw new NotImplementedException();
53                 }
54
55                 [MonoTODO]
56                 protected override void Dispose (bool disposing)
57                 {
58                         throw new NotImplementedException();
59                 }
60
61                 [MonoTODO]
62                 public override void Write (string message)
63                 {
64                         throw new NotImplementedException();
65                 }
66
67                 [MonoTODO]
68                 public override void WriteLine (string message)
69                 {
70                         throw new NotImplementedException();
71                 }
72         }
73 }
74