Class InternalTraceWriter
A trace listener that writes to a separate file per domain and process using it.
public class InternalTraceWriter : TextWriter, IDisposable, IAsyncDisposable
- Inheritance
-
InternalTraceWriter
- Implements
- Inherited Members
Constructors
InternalTraceWriter(TextWriter)
Construct an InternalTraceWriter that writes to a TextWriter provided by the caller.
public InternalTraceWriter(TextWriter writer)
Parameters
writerTextWriter
InternalTraceWriter(string)
Construct an InternalTraceWriter that writes to a file.
public InternalTraceWriter(string logPath)
Parameters
logPathstringPath to the file to use
Properties
Encoding
Returns the character encoding in which the output is written.
public override Encoding Encoding { get; }
Property Value
- Encoding
The character encoding in which the output is written.
Methods
Dispose(bool)
Releases the unmanaged resources used by the TextWriter and optionally releases the managed resources.
protected override void Dispose(bool disposing)
Parameters
disposingbooltrue to release both managed and unmanaged resources; false to release only unmanaged resources.
Flush()
Clears all buffers for the current writer and causes any buffered data to be written to the underlying device.
public override void Flush()
Write(char)
Writes a character to the text string or stream.
public override void Write(char value)
Parameters
valuecharThe character to write to the text stream.
Write(string)
Writes a string to the text string or stream.
public override void Write(string value)
Parameters
valuestringThe string to write.
WriteLine(string)
Writes a string followed by a line terminator to the text string or stream.
public override void WriteLine(string value)
Parameters
valuestringThe string to write. If
valueis null, only the line terminator is written.