TextWriterLogListener Class
Namespace: Stride.Core.DiagnosticsAssembly: Stride.Core.dll
A LogListener implementation redirecting its output to a System.IO.TextWriter.
Derived from TextWriterLogListener:
public class TextWriterLogListener : LogListener, IDisposable
Name | Description | |
---|---|---|
Constructors | ||
TextWriterLogListener(Stream) | Initializes a new instance of the TextWriterLogListener class. |
|
TextWriterLogListener(TextWriter) | Initializes a new instance of the TextWriterLogListener class. |
|
Properties | ||
LogWriter | Gets the log writer. |
|
Methods | ||
Flush() | ||
OnLog(ILogMessage) |
Constructors
TextWriterLogListener(Stream)
Initializes a new instance of the TextWriterLogListener class.
public TextWriterLogListener(Stream logStream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | logStream | The log stream. |
TextWriterLogListener(TextWriter)
Initializes a new instance of the TextWriterLogListener class.
public TextWriterLogListener(TextWriter logWriter)
Parameters
Type | Name | Description |
---|---|---|
System.IO.TextWriter | logWriter | The log writer. |
Properties
LogWriter
Gets the log writer.
public TextWriter LogWriter { get; }
Property Value
Type | Description |
---|---|
System.IO.TextWriter | The log writer. |
Methods
Flush()
protected override void Flush()
Overrides
OnLog(ILogMessage)
protected override void OnLog(ILogMessage logMessage)
Parameters
Type | Name | Description |
---|---|---|
ILogMessage | logMessage |