Beispiel #1
0
        private void DisplayMostRecent(GVFSEnlistment enlistment, string logFileType)
        {
            string logFile = enlistment.GetMostRecentGVFSLogFileName(logFileType);

            this.Output.WriteLine(
                "  {0}: {1}",
                logFileType,
                logFile == null ? "None" : logFile);
        }
Beispiel #2
0
        protected override void Execute(GVFSEnlistment enlistment, ITracer tracer = null)
        {
            string logFile = enlistment.GetMostRecentGVFSLogFileName();

            if (logFile != null)
            {
                this.Output.WriteLine("Most recent log file: " + logFile);
            }
            else
            {
                this.Output.WriteLine("No log files found at " + enlistment.GVFSLogsRoot);
            }
        }