namespace Brutal.Monitor.Common; public enum DumpType { None = 0, Triage, Mini, Full, Heap, } public struct CollectorOptions { /// Directory dumps are written under, in FirstChance and LastChance subfolders. Must already exist. public string DumpPath = ""; public DumpType FirstChance = DumpType.None; public DumpType LastChance = DumpType.None; public int KeepCount = 5; // number of dumps to keep /// /// Milliseconds allowed for writing a crash dump, which a dying host waits out. /// public int DumpTimeoutMs = 60000; public CollectorOptions() { } } public struct LoggerOptions { /// Directory the log file ("<name>.<stamp>.<pid>.log") is created in. Must already exist. public string LogDirectory = ""; /// /// How often buffered log lines are flushed to the OS page cache, bounding what a hard /// crash loses from the log file. Floors at 100ms. /// public int FlushIntervalMs = 100; /// /// Archived logs and recovered crash tails to retain per name. Zero keeps every one, /// which grows without bound, so the default is a real number a shipped game can live with. /// public int MaxArchives = 10; public LoggerOptions() { } }