public void Warning(Exception exception, string format, params object[] args) { WarningEntries.Add(new LogEntry { Format = format, Params = args, Exception = exception }); }