public void LogError(Func<ILogger, string> logEntryBuilder) { Debug.Write("ERROR:"); Debug.WriteLine(logEntryBuilder(this)); }