Table of Contents

Class LoggingBootstrapOptions

Namespace
SunamoLogging.Bootstrap
Assembly
SunamoLogging.dll

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.

public class LoggingBootstrapOptions
Inheritance
LoggingBootstrapOptions
Inherited Members
Extension Methods

Properties

AppLogFileName

Name of the rolling app log file (default app.log).

public string AppLogFileName { get; set; }

Property Value

string

CrashLogFileName

Name of the crash log file (default crash.log).

public string CrashLogFileName { get; set; }

Property Value

string

LevelsToLog

Levels routed to SunamoLogging.FileLogger. Default: Trace…Critical (all).

public List<LogLevel> LevelsToLog { get; set; }

Property Value

List<LogLevel>

MirrorConsoleToFile

If true (default), Console.Out and Console.Error are tee'd to AppLogFileName.

public bool MirrorConsoleToFile { get; set; }

Property Value

bool

RegisterCrashHandler

If true (default), unhandled and unobserved exceptions are appended to CrashLogFileName.

public bool RegisterCrashHandler { get; set; }

Property Value

bool

WipeAtStartup

If true (default), all files in the logs folder are deleted at startup.

public bool WipeAtStartup { get; set; }

Property Value

bool