Esempio n. 1
0
 public LogFileManager(string filePathKey, string fileNameKey)
 {
     _fileIO = new FileIO(
         ConfigAccess.GetValueInAppSettings(filePathKey),
         string.Format(ConfigAccess.GetValueInAppSettings(fileNameKey), DateTime.Now.ToString(FormatTemplate.FileDate)));
     _clientFeatures = new ClientFeatures();
 }
Esempio n. 2
0
        public LogFileManager(string filePathKey, string fileNameKey, ControllerName controllerName)
        {
            DateTime now = DateTime.Now;

            _fileIO = new FileIO(
                /// Param 1: Now
                now,
                /// Param 2: Path
                string.Format(
                    ConfigAccess.GetValueInAppSettings(filePathKey),
                    controllerName.ToString()
                    ),
                /// Param 3: File Name
                string.Format(
                    ConfigAccess.GetValueInAppSettings(fileNameKey),
                    now.ToString(ConfigAccess.GetValueInAppSettings(LogKeys.LogDate))
                    ));
        }