Table of Contents

Class LogWriter.CustomLogWriter

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Provides a base class for custom log writers that support message formatting with indentation.

public abstract class LogWriter.CustomLogWriter : LogWriter.BaseLogWriter, IBaseObjectWithAttr, IBaseObjectWithId, INotifyPropertyChanged, ILogWriter, IDisposableObject, IDisposable, IBaseObject
Inheritance
LogWriter.CustomLogWriter
Implements
Derived
Extension Methods

Remarks

This abstract class defines the core functionality for log writers, including managing indentation levels and formatting messages. Derived classes must implement the WriteLine(string) method to define how log messages are written to the output.

Properties

IndentLevel

Gets the current indentation level used for formatting output.

Methods

FormatMessage(string)

Formats the specified message by applying the current indentation level.

Indent()

Increases the indentation level for subsequent log messages.

Unindent()

Decreases the indentation level for subsequent log messages.