public Configuration(LevelOfDetalization level, string location) { Level = level; if (IsEligible(location)) { Location = location; } else { Location = Directory.GetCurrentDirectory() + "\\Errors.txt"; MyLogger logger = new MyLogger(this); logger.Log(new ArgumentException($"Specified location is incorrect! Default location will be used: {Location}")); } }