Skip to content

Commit

Permalink
Add log rules to parse exceptions and aborts (#106)
Browse files Browse the repository at this point in the history
* Add log rules to parse exceptions and aborts

* Fix rule typo
  • Loading branch information
niezbop authored Aug 30, 2017
1 parent 7ffdaee commit c287eb9
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions config/log_rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,29 @@
],
"type": "error"
},
"exception": {
"active": true,
"start_pattern": "[eE]xception.*: (?<message>.*)\\n",
"end_pattern": "Filename: (?:[\\w/:]+/(?<file>\\w+\\.\\w+))? Line: (?<line>-?\\d+)",
"start_message": false,
"end_message": "%{file}(line %{line}): %{message}",
"store_lines": false,
"ignore_lines": [
"UnityEditor",
"UnityEngine",
"^\\n"
],
"type": "error"
},
"exception_report": {
"active": true,
"start_pattern": "^(?<message>.*threw exception\\.)\\n",
"end_pattern": "Filename: (?:[\\w/:]+/(?<file>\\w+\\.\\w+))? Line: (?<line>-?\\d+)",
"start_message": false,
"end_message": "%{file}(line %{line}): %{message}",
"store_lines": false,
"type": "error"
},
"log": {
"active": true,
"start_pattern": "UnityEngine\\.Debug:Log\\(Object\\)",
Expand Down Expand Up @@ -99,6 +122,12 @@
"active": true,
"start_pattern": "Exiting batchmode successfully now!",
"type": "success"
},
"batchmode_abort": {
"active": true,
"start_pattern": "Aborting batchmode due to failure",
"end_pattern": ".*",
"type": "error"
}
}
},
Expand Down

0 comments on commit c287eb9

Please sign in to comment.