Example #1
0
        /// <summary>
        /// Encapsulates extracting and parsing logset.
        /// </summary>
        protected void ExtractAndParseLogset(LogsharkRequest request)
        {
            StartPhase(request, ProcessingPhase.Extracting);
            try
            {
                LogsharkController.ExtractLogFiles(request);
            }
            catch (Exception ex)
            {
                Log.FatalFormat("Encountered a fatal error while extracting logset: {0}", ex.Message);
                if (ex.InnerException != null)
                {
                    Log.DebugFormat(ex.InnerException.StackTrace);
                }
                throw;
            }

            StartPhase(request, ProcessingPhase.Parsing);
            try
            {
                LogsharkController.ParseLogset(request);
            }
            catch (Exception ex)
            {
                Log.FatalFormat("Encountered a fatal error while processing logset: {0}", ex.Message);
                if (ex.InnerException != null)
                {
                    Log.DebugFormat(ex.InnerException.StackTrace);
                }
                throw;
            }
        }
Example #2
0
 /// <summary>
 /// Encapsulates extracting and parsing logset.
 /// </summary>
 protected void ParseLogset(LogsharkRequest request, IArtifactProcessor artifactProcessor)
 {
     StartPhase(request, ProcessingPhase.Parsing);
     try
     {
         LogsharkController.ParseLogset(request, artifactProcessor.GetParserFactory(request.RunContext.RootLogDirectory));
     }
     catch (Exception ex)
     {
         Log.FatalFormat("Encountered a fatal error while processing logset: {0}", ex.Message);
         if (ex.InnerException != null)
         {
             Log.DebugFormat(ex.InnerException.StackTrace);
         }
         throw;
     }
 }