BudgetAnalyser.Engine.BudgetAnalyserLog4NetLogger.LogWarning C# (CSharp) Method

LogWarning() public method

public LogWarning ( string>.[ logEntryBuilder ) : void
logEntryBuilder string>.[
return void
        public void LogWarning([NotNull] Func<ILogger, string> logEntryBuilder)
        {
            if (logEntryBuilder == null)
            {
                throw new ArgumentNullException(nameof(logEntryBuilder));
            }

            if (this.disposed)
            {
                throw new ObjectDisposedException("BudgetAnalyserLog4NetLogger");
            }

            if (Log4NetLogger.IsWarnEnabled)
            {
                SynchroniseWithAlwaysLog(() => Log4NetLogger.Warn(logEntryBuilder(this)));
            }
        }