Constructor TextWriterStreamHandler
TextWriterStreamHandler(TextWriter, bool)
Initializes a new instance of the TextWriterStreamHandler class.
public TextWriterStreamHandler(TextWriter writer, bool ownsWriter = false)
Parameters
writerTextWriterThe text writer to write to.
ownsWriterboolWhether to dispose the writer when this handler is disposed.