<PackageReference Include="Castle.Core" Version="3.2.2" />

StreamLogger

The Stream Logger class. This class can stream log information to any stream, it is suitable for storing a log file to disk, or to a MemoryStream for testing your components.
public StreamLogger(string name, Stream stream)

Creates a new StreamLogger with default encoding and buffer size. Initial Level is set to Debug.

public StreamLogger(string name, Stream stream, Encoding encoding)

Creates a new StreamLogger with default buffer size. Initial Level is set to Debug.

public StreamLogger(string name, Stream stream, Encoding encoding, int bufferSize)

Creates a new StreamLogger. Initial Level is set to Debug.

protected StreamLogger(string name, StreamWriter writer)

Creates a new StreamLogger with Debug as default Level.

public void Dispose()

protected virtual void Dispose(bool disposing)