public SimpleStreamLogger(Stream source, ISimpleLogFormatter formatter) { writer = new StreamWriter(source) { AutoFlush = true }; Formatter = formatter; }
public SimpleStreamLogger(string outputPath, ISimpleLogFormatter formatter, FileMode fileMode = FileMode.Append) : this(new FileStream(outputPath, fileMode), formatter) { }