Add support for custom StringWriter interface to handle writing lines to log files.
Merge pull request #1 from dgolub/CM-1751

Add support for custom StringWriter interface to handle writing lines to log files.