void OnDisable() { if (_general != null) { _general.add("end"); } if (_stream != null) { _stream.Dispose(); } }
public LogDomain register(string aName, bool aEnabled = true) { LogDomain result; if (!_domains.ContainsKey(aName)) { result = new LogDomain(aName, aEnabled); result.Added += onRecordAdded; result.add("init"); _domains.Add(aName, result); } else { result = _domains[aName]; } return(result); }