Annotation Type LogFileRuleConfig
Annotation to configure the log file rule.
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionString[]
End markers per log file.String[]
Lines containing at least one of these markers are considered an error.String[]
The log file names to parse for errors.String[]
List of known and accepted errors.System property containing the full path of the quickstart folders.boolean
Whether to read the log files from the test resources or not.boolean
Whether to stop scanning the log files once an error is detected.
-
Element Details
-
fileNames
String[] fileNamesThe log file names to parse for errors.- Returns:
- the list of filenames
- Default:
{"error.log"}
-
knownIssues
String[] knownIssuesList of known and accepted errors.- Returns:
- the list of issues
- Default:
{}
-
endMarkers
String[] endMarkersEnd 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[] errorMarkersLines containing at least one of these markers are considered an error.- Returns:
- the list of markers
- Default:
{"ERROR", "WARN"}
-
stopAtError
boolean stopAtErrorWhether 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 quickstartFolderPropertySystem 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 readLogFileFromTestResourcesWhether 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
-