Annotation Type LogFileRuleConfig


@Retention(RUNTIME) @Target(METHOD) public @interface LogFileRuleConfig
Annotation to configure the log file rule.
  • Element Details

    • fileNames

      String[] fileNames
      The log file names to parse for errors.
      Returns:
      the list of filenames
      Default:
      {"error.log"}
    • knownIssues

      String[] knownIssues
      List of known and accepted errors.
      Returns:
      the list of issues
      Default:
      {}
    • endMarkers

      String[] endMarkers
      End markers per log file. The log files are only scanned up to the line containing these end markers.
      Returns:
      the list of markers
      Default:
      {"error.log;WorkflowLauncherListener StartupListener.startupFinished called"}
    • errorMarkers

      String[] errorMarkers
      Lines containing at least one of these markers are considered an error.
      Returns:
      the list of markers
      Default:
      {"ERROR", "WARN"}
    • stopAtError

      boolean stopAtError
      Whether to stop scanning the log files once an error is detected.
      Returns:
      true if the scanning is stopped once an error is detected
      Default:
      true
    • quickstartFolderProperty

      String quickstartFolderProperty
      System property containing the full path of the quickstart folders. This property is usually set with the quickstart-runner.properties file during quickstart build.
      Returns:
      the property name
      Default:
      "granite.it.default.quickstart.folders"
    • readLogFileFromTestResources

      boolean readLogFileFromTestResources
      Whether to read the log files from the test resources or not. Usable for testing the rule itself.
      Returns:
      true if the log files are read from the test resources
      Default:
      false