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
writer
TextWriter
InternalTraceWriter(string)
Construct an InternalTraceWriter that writes to a file.
public InternalTraceWriter(string logPath)
Parameters
logPath
stringPath 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)
protected override void Dispose(bool disposing)
Parameters
disposing
bool
Flush()
public override void Flush()
Write(char)
Writes a character to the text string or stream.
public override void Write(char value)
Parameters
value
charThe character to write to the text stream.
Write(string)
Writes a string followed by a line terminator to the text string or stream.
public override void Write(string value)
Parameters
value
stringThe string to write. If
value
is null, only the line terminator is written.
WriteLine(string)
public override void WriteLine(string value)
Parameters
value
string