public void AddEntry <T>(string logName, CallbackParametersBase <T> parameters) where T : struct { if (parameters.CallbackReasonCategory == CallbackParametersBase.ReasonCategory.Summary) { List <string> logSummaries; if (!_summariesByLog.TryGetValue(logName, out logSummaries)) { _summariesByLog.Add(logName, logSummaries = new List <string>()); } logSummaries.Add(parameters.SummaryMessage); } else { _categorizedLogs[parameters.CallbackReasonCategory].AddEntry(logName, parameters.CallbackReason.ToString()); } }
public void Log(CallbackParametersBase <T> parameters, string message) { this[parameters.CallbackReasonCategory, parameters.CallbackReason].Add(message); }