/// <summary> /// Sets up and issues the LogsharkRequest to the LogsharkController. /// </summary> public void Execute() { if (commandLineOptions.ListPlugins) { try { LogsharkController.PrintAvailablePlugins(); return; } catch (Exception ex) { Log.FatalFormat("Unable to retrieve list of available plugins: {0}", ex.Message); throw; } } try { LogsharkRequest request = BuildLogsharkRequest(commandLineOptions); LogsharkRequestProcessor requestProcessor = InitializeRequestProcessor(); requestProcessor.ProcessRequest(request); } catch (Exception ex) { // Certain known exception types have already had their errors logged out by the core; we want to avoid duplicating error logging on these. if (!IsKnownExceptionType(ex)) { Log.Fatal(ex.GetFlattenedMessage()); } Log.Debug(ex); throw; } }
/// <summary> /// Display a list of all available plugins to the user. /// </summary> public static void PrintAvailablePlugins() { LogsharkController.PrintAvailablePlugins(); }