Constructor LogStream
LogStream()
Creates an new LogStream instance with no predefined outputs.
public LogStream()
LogStream(TextWriter)
Creates an new LogStream instance with the given TextWriter object.
public LogStream(TextWriter tw)
Parameters
tw
TextWriterThe TextWriter instance which this instance will write log to.
LogStream(string)
Creates an new LogStream instance with the given relative or absolute file path.
public LogStream(string filename)
Parameters
filename
stringThe file path where this instance will write log to.
LogStream(string?, TextWriter?)
Creates an new LogStream instance which writes text to an file and an TextWriter.
public LogStream(string? filename, TextWriter? tw)
Parameters
filename
stringThe file path where this instance will write log to.
tw
TextWriterThe text writer which this instance will write log to.