Table of Contents

Class LogTextWriter

Namespace
ReFuel
Assembly
ReFuel.Common.dll

Compatibility class for Log writers.

public class LogTextWriter : TextWriter, IAsyncDisposable, IDisposable
Inheritance
LogTextWriter
Implements
Inherited Members

Constructors

LogTextWriter(string, LogLevel, string)

public LogTextWriter(string category, LogLevel level, string source = "")

Parameters

category string
level LogLevel
source string

Properties

Encoding

When overridden in a derived class, returns the character encoding in which the output is written.

public override Encoding Encoding { get; }

Property Value

Encoding

The character encoding in which the output is written.

Level

public LogLevel Level { get; }

Property Value

LogLevel

Methods

Write(char)

Writes a character to the text stream.

public override void Write(char value)

Parameters

value char

The character to write to the text stream.

Exceptions

ObjectDisposedException

The TextWriter is closed.

IOException

An I/O error occurs.