public FileBaseLogger(IHostingEnvironment hostingEnvironment, ILoggerSetting loggerSetting)
        {
            _loggerSetting = loggerSetting;
            Basedir        = hostingEnvironment.ContentRootPath + "\\Logs\\";
            _todaysDate    = DateTime.Now.ToString("yyyy_MM_dd");

            if (!Directory.Exists(Basedir))
            {
                Directory.CreateDirectory(Basedir);
            }
            LogFilePath = Basedir + CustomFileName + _todaysDate + ".log";
            _init();
        }
 public DefaultLogProvider(IHostingEnvironment hostingEnvironment, ILoggerSetting loggerSetting)
 {
     _hostingEnvironment = hostingEnvironment;
     _loggerSetting      = loggerSetting;
 }