36
|
1 using System;
|
|
2 using System.Collections.Generic;
|
|
3 using System.Linq;
|
|
4 using System.Text;
|
|
5
|
|
6 namespace Implab.Diagnostics {
|
|
7 public class TraceEvent {
|
|
8 public string Message {
|
|
9 get;
|
|
10 private set;
|
|
11 }
|
|
12
|
|
13 public TraceEventType EventType {
|
|
14 get;
|
|
15 private set;
|
|
16 }
|
|
17
|
|
18 public TraceEvent(TraceEventType type, string message) {
|
|
19 EventType = type;
|
|
20 Message = message;
|
|
21 }
|
|
22
|
|
23 public static TraceEvent Create(TraceEventType type, string format, params object[] args) {
|
|
24 return new TraceEvent(type, String.Format(format, args));
|
|
25 }
|
|
26 }
|
|
27 }
|