Beispiel #1
0
        private static int ProcessPriorLog(Settings settings)
        {
            Log.DebugFormat("Processing prior run file: {0}", settings.InFilename);
            if (settings.ToMatch == null)
            {
                settings.ShowOptionsError("Reading in prior run (-i) requires a match to test (-m)");
                return(1);
            }
            Log.DebugFormat("Looking for matches to: {0}", settings.ToMatch.ToString());
            OnionLogProcessor processor
                = new OnionLogProcessor(Path.Combine(settings.BaseDir, settings.InFilename),
                                        settings.ToMatch)
                {
                PickDirectory = PickOutputDirectory,
                MatchMax      = settings.MaxMatch,
                };

            processor.ProcessLog();

            return(0);
        }
Beispiel #2
0
        private static int ProcessPriorLog(Settings settings)
        {
            Log.DebugFormat("Processing prior run file: {0}", settings.InFilename);
            if (settings.ToMatch == null)
            {
                settings.ShowOptionsError("Reading in prior run (-i) requires a match to test (-m)");
                return 1;
            }
            Log.DebugFormat("Looking for matches to: {0}", settings.ToMatch.ToString());
            OnionLogProcessor processor
                = new OnionLogProcessor(Path.Combine(settings.BaseDir, settings.InFilename),
                                        settings.ToMatch) {
                PickDirectory = PickOutputDirectory,
                MatchMax = settings.MaxMatch,
            };
            processor.ProcessLog();

            return 0;
        }