Esempio n. 1
0
        protected virtual string GetExistingLogFilePath()
        {
            var logFilePaths = _logWatcherSettingsAccessor.GetSettings().GetLogFileFolderPaths();
            var solutionPath = IsSolutionOpen() && !string.IsNullOrEmpty(_dte.Solution.FileName) ?
                               Path.GetDirectoryName(_dte.Solution.FileName) : "";

            return(GetAllMatchingPaths(solutionPath, logFilePaths, GetLogFileName()).FirstOrDefault());
        }
Esempio n. 2
0
        private string GetLogFileName()
        {
            var logFilePath      = _logWatcherSettingsAccessor.GetSettings().LogFileFolderPath;
            var solutionPath     = IsSolutionOpen() ? Path.GetDirectoryName(_dte.Solution.FileName) : "";
            var errorLogFileName = "orchard-error-" + DateTime.Today.ToString("yyyy.MM.dd") + ".log";

            return(Path.Combine(solutionPath, logFilePath, errorLogFileName));
        }