InMemoryLogger class

Thread safe logger that writes text to an in-memory buffer. The buffered text can be extracted using the ToString() method.

public sealed class InMemoryLogger : TextWriter

Public Members

name description
InMemoryLogger() Initializes a new instance of the InMemoryLogger class.
override Encoding { get; } When overridden in a derived class, returns the character encoding in which the output is written.
override ToString() Returns the logged text as a string.
override Write(…) Writes the specified Unicode character value to the standard output stream. (2 methods)
override WriteLine(…) Writes a string followed by a line terminator to the text string or stream.

Remarks

See Logging for more information.

See Also