Table of Contents

Method SetLogTextWriter

Namespace
LMKit.Global
Assembly
LM-Kit.NET.dll

SetLogTextWriter(TextWriter)

Sets the TextWriter to which log messages are written. This method is available in .NET 5.0 and later versions.

public static void SetLogTextWriter(TextWriter textWriter)

Parameters

textWriter TextWriter

The TextWriter to use for log output.

Remarks

By default, log messages are written to the debug output. Use this method to redirect log messages to a different TextWriter, such as a StreamWriter or StringWriter.