Mercurial > pub > ImplabNet
comparison Implab/Diagnostics/TextFileListener.cs @ 46:9ce97b262a7a interactive logger
Слияние с default
author | cin |
---|---|
date | Thu, 17 Apr 2014 08:49:24 +0400 |
parents | e5ec543feee3 |
children | b181f7bcb259 |
comparison
equal
deleted
inserted
replaced
45:d10034588e38 | 46:9ce97b262a7a |
---|---|
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) { | 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 } |