Table of Contents

Namespace SunamoLogging.Bootstrap

Classes

ConsoleAppContext

Result of InitConsoleApp(string, LoggingBootstrapOptions?, Action<IServiceCollection>?): ready-to-use DI primitives and ILogger.

ConsoleTee

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.

CrashHandler

Registers global handlers for unhandled exceptions and unobserved task exceptions that append a structured crash record (timestamp, app/runtime/OS info, full stack trace) to a single crash log file.

LoggingBootstrap

One-call setup for the „DISKOVÉ LOGY" pattern: wipe Logs/, tee Console to app.log, register crash handler that writes to crash.log, return a configured FileLoggerProvider. Intended to be called from app entry point right after the Logs folder is known.

LoggingBootstrapOptions

Options for Initialize(string, LoggingBootstrapOptions?). Defaults align with the global „DISKOVÉ LOGY" rule: wipe at startup, mirror Console to disk, register crash handler, single app.log/crash.log files, all severities incl. Information.