[MAGNOLIA-4022] Provide script for parsing the logs Created: 09/Mar/12  Updated: 16/Mar/12  Resolved: 13/Mar/12

Status: Closed
Project: Magnolia
Component/s: testing
Affects Version/s: 4.4.6
Fix Version/s: 4.5.2

Type: Improvement Priority: Neutral
Reporter: Robert Šiška Assignee: Robert Šiška
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
is cloned by MGNLEE-225 CLONE -Provide script for parsing the... Closed
is cloned by MGNLEE-225 CLONE -Provide script for parsing the... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)

 Description   

Script will monitor all specified log files and search for any errors.



 Comments   
Comment by Robert Šiška [ 09/Mar/12 ]

This groovy script parses the logs and looks for the errors.
You can specify file or directory. If you specify the directory, it searches for 'magnolia*.log' files recursively and parses them all.

Path is specified by command-line argument or in maven property <logspath></logspath>.

The script returns RuntimeException when:

  • any of the parsed logs contained some errors,
  • specified path doesn't exists.

Error line is a line which starts with 'ERROR' or it contains 'RenderException'.

Generated at Mon Feb 12 03:51:55 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.