Table of Contents

Class ConsoleTee

Namespace
SunamoLogging.Bootstrap
Assembly
SunamoLogging.dll

Mirrors Console.Out and Console.Error to a file in addition to the original console streams. Install once at app startup to capture all Console.WriteLine output to disk.

public static class ConsoleTee
Inheritance
ConsoleTee
Inherited Members

Methods

Install(string)

Redirects Console.Out and Console.Error so every write goes to both the original console stream and the given file. Idempotent — second call is no-op.

public static void Install(string filePath)

Parameters

filePath string