comparison 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
comparison
equal deleted inserted replaced
46:9ce97b262a7a 47:b181f7bcb259
3 using System.Linq; 3 using System.Linq;
4 using System.Text; 4 using System.Text;
5 using System.Threading.Tasks; 5 using System.Threading.Tasks;
6 6
7 namespace Implab.Diagnostics.Interactive { 7 namespace Implab.Diagnostics.Interactive {
8 public struct TraceViewItem { 8 public class TraceViewItem {
9 public string message; 9 string m_formattedValue;
10 public int timestamp; 10
11 public int indent; 11 public string Message { get; set; }
12 public int thread; 12 public int Timestamp { get; set; }
13 public int Indent { get; set; }
14 public int Thread { get; set; }
15
16 public string FormattedMessage {
17 get {
18 if (m_formattedValue == null) {
19 m_formattedValue = Message.Replace("\r",String.Empty).Replace("\n", " | ");
20 }
21 return m_formattedValue;
22 }
23 }
13 } 24 }
14 } 25 }