Mercurial > pub > ImplabNet
comparison Implab/Diagnostics/TextFileListener.cs @ 44:e5ec543feee3
Рефакторинг, журналирование
| author | cin |
|---|---|
| date | Wed, 16 Apr 2014 19:02:58 +0400 |
| parents | 7c2369f580b8 |
| children | b181f7bcb259 |
comparison
equal
deleted
inserted
replaced
| 43:7c2369f580b8 | 44:e5ec543feee3 |
|---|---|
| 6 | 6 |
| 7 namespace Implab.Diagnostics { | 7 namespace Implab.Diagnostics { |
| 8 public class TextFileListener: TextListenerBase { | 8 public class TextFileListener: TextListenerBase { |
| 9 readonly TextWriter m_textWriter; | 9 readonly TextWriter m_textWriter; |
| 10 | 10 |
| 11 public TextFileListener(string fileName) : base(true) { | 11 public TextFileListener(string fileName, bool local) : base(local) { |
| 12 m_textWriter = File.CreateText(fileName); | 12 m_textWriter = File.CreateText(fileName); |
| 13 | 13 |
| 14 m_textWriter.WriteLine("LOG {0}", DateTime.Now); | 14 m_textWriter.WriteLine("LOG {0}", DateTime.Now); |
| 15 Register(this); | 15 Register(this); |
| 16 } | 16 } |
