private void GetLogDescrptions()
        {
            List <LogDescription> result = new List <LogDescription>();

            FileInfo[] fileInfos = new DirectoryInfo("./settings/LogDescriptions").GetFiles("*.logDescription");
            foreach (FileInfo fileInfo in fileInfos)
            {
                _logger.Info("Processing log description from " + fileInfo.FullName);
                UpdateLogDescriptions(LogDescription.ProcessLogDescription(fileInfo.FullName));
            }
        }
        private void OnChanged(object sender, FileSystemEventArgs fileSystemEventArgs)
        {
            switch (fileSystemEventArgs.ChangeType)
            {
            case WatcherChangeTypes.Created:
            {
                AddLogDescriptions(LogDescription.ProcessLogDescription(fileSystemEventArgs.FullPath));
                break;
            }

            case WatcherChangeTypes.Changed:
            {
                UpdateLogDescriptions(LogDescription.ProcessLogDescription(fileSystemEventArgs.FullPath));
                break;
            }

            case WatcherChangeTypes.Deleted:
            {
                RemoveLogDescriptions(LogDescription.ProcessLogDescription(fileSystemEventArgs.FullPath));
                break;
            }
            }
        }