public MvcApplication() { if (ConfigurationManager.AppSettings["Logging"].AsBool()) { logger = new MvcMusicStore.Models.Logger(); } }
public AccountController(UserManager <ApplicationUser> userManager) { _userManager = userManager; counterHelper = PerformanceHelper.CreateCounterHelper <Counters>("MvcMusicStore"); if (ConfigurationManager.AppSettings["Logging"].AsBool()) { logger = new Logger(); } }
public HomeController(ILogger_MusicStore logger) { this.logger = logger; this.logger.LogInfo("Home Controller created succesfully"); }