Table of Contents

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 Stream

The log stream.

TextWriterLogListener(TextWriter)

Initializes a new instance of the TextWriterLogListener class.

public TextWriterLogListener(TextWriter logWriter)

Parameters

logWriter TextWriter

The 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 ILogMessage

The log message.