annotate Implab.Diagnostics.Interactive/TraceViewItem.cs @ 47:b181f7bcb259 interactive logger

refactoring, interactive tarce log almost complete
author cin
date Thu, 17 Apr 2014 18:49:36 +0400
parents d10034588e38
children d9d794b61bb9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
45
d10034588e38 initial work on interactive logger
cin
parents:
diff changeset
1 using System;
d10034588e38 initial work on interactive logger
cin
parents:
diff changeset
2 using System.Collections.Generic;
d10034588e38 initial work on interactive logger
cin
parents:
diff changeset
3 using System.Linq;
d10034588e38 initial work on interactive logger
cin
parents:
diff changeset
4 using System.Text;
d10034588e38 initial work on interactive logger
cin
parents:
diff changeset
5 using System.Threading.Tasks;
d10034588e38 initial work on interactive logger
cin
parents:
diff changeset
6
d10034588e38 initial work on interactive logger
cin
parents:
diff changeset
7 namespace Implab.Diagnostics.Interactive {
47
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
8 public class TraceViewItem {
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
9 string m_formattedValue;
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
10
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
11 public string Message { get; set; }
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
12 public int Timestamp { get; set; }
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
13 public int Indent { get; set; }
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
14 public int Thread { get; set; }
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
15
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
16 public string FormattedMessage {
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
17 get {
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
18 if (m_formattedValue == null) {
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
19 m_formattedValue = Message.Replace("\r",String.Empty).Replace("\n", " | ");
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
20 }
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
21 return m_formattedValue;
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
22 }
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
23 }
45
d10034588e38 initial work on interactive logger
cin
parents:
diff changeset
24 }
d10034588e38 initial work on interactive logger
cin
parents:
diff changeset
25 }