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
CrashLogFileName
Name of the crash log file (default crash.log).
public string CrashLogFileName { get; set; }
Property Value
LevelsToLog
Levels routed to SunamoLogging.FileLogger. Default: Trace…Critical (all).
public List<LogLevel> LevelsToLog { get; set; }
Property Value
MirrorConsoleToFile
If true (default), Console.Out and Console.Error are tee'd to AppLogFileName.
public bool MirrorConsoleToFile { get; set; }
Property Value
RegisterCrashHandler
If true (default), unhandled and unobserved exceptions are appended to CrashLogFileName.
public bool RegisterCrashHandler { get; set; }
Property Value
WipeAtStartup
If true (default), all files in the logs folder are deleted at startup.
public bool WipeAtStartup { get; set; }