Class TextWriterLogListener
- Namespace
- Stride.Core.Diagnostics
- Assembly
- Stride.Core.dll
A LogListener implementation redirecting its output to a TextWriter.
public class TextWriterLogListener : LogListener, IDisposable
- Inheritance
-
TextWriterLogListener
- Implements
- Inherited Members
- Extension Methods
Constructors
TextWriterLogListener(Stream)
Initializes a new instance of the TextWriterLogListener class.
public TextWriterLogListener(Stream logStream)
Parameters
logStream
StreamThe log stream.
TextWriterLogListener(TextWriter)
Initializes a new instance of the TextWriterLogListener class.
public TextWriterLogListener(TextWriter logWriter)
Parameters
logWriter
TextWriterThe log writer.
Properties
LogWriter
Gets the log writer.
public TextWriter LogWriter { get; }
Property Value
- TextWriter
The log writer.
Methods
Flush()
Flush the log, method to be implemented in a subclass.
protected override void Flush()
OnLog(ILogMessage)
Called when a log occurred.
protected override void OnLog(ILogMessage logMessage)
Parameters
logMessage
ILogMessageThe log message.