public void LogError(Exception ex, [NotNull] Func<ILogger, string> logEntryBuilder)
{
if (logEntryBuilder == null)
{
throw new ArgumentNullException(nameof(logEntryBuilder));
}
if (this.disposed)
{
throw new ObjectDisposedException("BudgetAnalyserLog4NetLogger");
}
if (Log4NetLogger.IsErrorEnabled)
{
SynchroniseWithAlwaysLog(() => Log4NetLogger.Error(logEntryBuilder(this), ex));
}
}