public FeedbackFileLoggerProvider(FeedbackFileLogWriter feedbackFileLogWriter) { if (feedbackFileLogWriter is null) { throw new ArgumentNullException(nameof(feedbackFileLogWriter)); } _feedbackFileLogWriter = feedbackFileLogWriter; _noopLogger = new NoopLogger(); }
public FeedbackFileLogger(string categoryName, FeedbackFileLogWriter feedbackFileLogWriter) { if (categoryName is null) { throw new ArgumentNullException(nameof(categoryName)); } if (feedbackFileLogWriter is null) { throw new ArgumentNullException(nameof(feedbackFileLogWriter)); } _categoryName = categoryName; _feedbackFileLogWriter = feedbackFileLogWriter; _noopScope = new Scope(); }