Last active
November 18, 2022 09:37
-
-
Save recih/0bde6c847e5e72426347390901c5a67e to your computer and use it in GitHub Desktop.
log rules config for https://github.com/DragonBox/u3d
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"GENERAL": { | |
"active": true, | |
"comment": "A generic set of rules, to be applied regardless of the current phase", | |
"rules": { | |
"steps": { | |
"active": false, | |
"start_pattern": "DisplayProgressbar: (?<step>.+)", | |
"start_message": "Current step: %{step}" | |
}, | |
"fail": { | |
"active": true, | |
"start_pattern": "^(?<fail>Failed to .+)\\n", | |
"end_pattern": "Filename: (?:.+/(?<file>\\w+\\.\\w+))? Line: (?<line>-?\\d+)", | |
"start_message": false, | |
"end_message": "%{file}(line %{line}): %{fail}", | |
"store_lines": false, | |
"ignore_lines": [ | |
"UnityEditor", | |
"UnityEngine", | |
"^\\n" | |
], | |
"type": "error" | |
}, | |
"exception": { | |
"active": true, | |
"start_pattern": "^(?:(?!\\().)*[eE]xception\\w*: (?<message>.*)\\n", | |
"end_pattern": "(?:Filename: (?:[\\w/:]+/(?<file>\\w+\\.\\w+))? Line: (?<line>-?\\d+)|(?<fileunknown>filename unknown)>:(?<lineunknown>-?\\d+))", | |
"start_message": false, | |
"end_message": "%{file}%{fileunknown}(line %{line}%{lineunknown}): %{message}", | |
"store_lines": false, | |
"ignore_lines": [ | |
"UnityEditor", | |
"UnityEngine", | |
"^\\n" | |
], | |
"type": "error" | |
}, | |
"exception_report": { | |
"active": true, | |
"start_pattern": "^(?<message>.*threw exception\\.)\\n", | |
"end_pattern": "Filename: (?:.+/(?<file>\\w+\\.\\w+))? Line: (?<line>-?\\d+)", | |
"start_message": false, | |
"end_message": "%{file}(line %{line}): %{message}", | |
"store_lines": false, | |
"type": "error" | |
}, | |
"error_shared_library": { | |
"active": true, | |
"start_pattern": "error while loading shared libraries: (?<message>.*)\\n", | |
"start_message": "Error while loading shared libraries: %{message}", | |
"type": "error" | |
}, | |
"log": { | |
"active": true, | |
"start_pattern": "UnityEngine\\.Debug:Log(?:Format)?\\s*\\([^\\)]+\\)", | |
"fetch_first_line_not_matching": [ | |
"UnityEngine\\.", | |
"^\\n" | |
], | |
"fetched_line_pattern": "(?<message>.*)\\n", | |
"fetched_line_message": false, | |
"start_message": false, | |
"end_pattern": "Filename: (?:.+/(?<file>\\w+\\.\\w+))? Line: (?<line>-?\\d+)", | |
"end_message": "[LOG] %{file}(line %{line}): %{message}" | |
}, | |
"log_assertion": { | |
"active": true, | |
"start_pattern": "UnityEngine\\.Debug:LogAssertion(?:Format)?\\s*\\([^\\)]+\\)", | |
"fetch_first_line_not_matching": [ | |
"UnityEngine\\.", | |
"^\\n" | |
], | |
"fetched_line_pattern": "(?<message>.*)\\n", | |
"fetched_line_message": false, | |
"start_message": false, | |
"end_pattern": "Filename: (?:.+/(?<file>\\w+\\.\\w+))? Line: (?<line>-?\\d+)", | |
"end_message": "[LOG] %{file}(line %{line}): %{message}", | |
"type": "warning" | |
}, | |
"log_warning": { | |
"active": true, | |
"start_pattern": "UnityEngine\\.Debug:LogWarning(?:Format)?\\s*\\([^\\)]+\\)", | |
"fetch_first_line_not_matching": [ | |
"UnityEngine\\.", | |
"^\\n", | |
"^\\s+" | |
], | |
"fetched_line_pattern": "(?<message>.*)\\n", | |
"fetched_line_message": false, | |
"start_message": false, | |
"end_pattern": "Filename: (?:.+/(?<file>\\w+\\.\\w+))? Line: (?<line>-?\\d+)", | |
"end_message": "[LOG] %{file}(line %{line}): %{message}", | |
"type": "warning" | |
}, | |
"log_error": { | |
"active": true, | |
"start_pattern": "UnityEngine\\.Debug:LogError(?:Format)?\\s*\\([^\\)]+\\)", | |
"fetch_first_line_not_matching": [ | |
"UnityEngine\\.", | |
"^\\n", | |
"^\\t", | |
"^ " | |
], | |
"fetched_line_pattern": "(?<message>.*)\\n", | |
"fetched_line_message": false, | |
"start_message": false, | |
"end_pattern": "Filename: (?:.+/(?<file>\\w+\\.\\w+))? Line: (?<line>-?\\d+)", | |
"end_message": "[LOG] %{file}(line %{line}): %{message}", | |
"type": "error" | |
}, | |
"log_exception": { | |
"active": true, | |
"start_pattern": "UnityEngine\\.Debug:LogError\\(Object\\)", | |
"fetch_first_line_not_matching": [ | |
"UnityEngine\\.", | |
"^\\n", | |
"^\\t", | |
"^ " | |
], | |
"fetched_line_pattern": "(?<message>.*)\\n", | |
"fetched_line_message": false, | |
"start_message": false, | |
"end_pattern": "Filename: (?:.+/(?<file>\\w+\\.\\w+))? Line: (?<line>-?\\d+)", | |
"end_message": "[LOG] %{file}(line %{line}): %{message}", | |
"type": "error" | |
}, | |
"build_pipeline_message": { | |
"active": true, | |
"start_pattern": "UnityEditor\\.BuildPipeline:BuildPlayerInternalNoCheck", | |
"fetch_first_line_not_matching": [ | |
"UnityEditor\\.", | |
"^\\n", | |
"^\\t", | |
"^ " | |
], | |
"fetched_line_pattern": "(?<message>.*)\\n", | |
"fetched_line_message": false, | |
"start_message": false, | |
"end_pattern": "Filename: (?:.+/(?<file>\\w+\\.\\w+\\.\\w+))? Line: (?<line>-?\\d+)", | |
"end_message": "[LOG] %{file}(line %{line}): %{message}", | |
"type": "warning" | |
}, | |
"batchmode_exit": { | |
"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" | |
}, | |
"compiler_error": { | |
"active": true, | |
"start_pattern": "^(?<file>.+\\(\\d+,\\d+\\)): error (?<code>CS\\d+): (?<message>.+)", | |
"start_message": "Error %{code}: %{message} (%{file})", | |
"type": "error" | |
}, | |
"compiler_warning": { | |
"active": true, | |
"start_pattern": "^(?<file>.+\\(\\d+,\\d+\\)): warning (?<code>CS\\d+): (?<message>.+)", | |
"start_message": "Warning %{code}: %{message} (%{file})", | |
"type": "warning" | |
}, | |
"compiling_shader": { | |
"active": false, | |
"start_pattern": "^Compiling shader \"(?<name>[^\"]+)\"", | |
"end_pattern": "\\s+finished in (?<time>[\\d\\.]+)", | |
"store_lines": true, | |
"ignore_lines": [ | |
"starting compilation" | |
] | |
} | |
} | |
}, | |
"LICENSE": { | |
"active": true, | |
"silent": false, | |
"comment": "Unity license system logic", | |
"phase_start_pattern": "LICENSE SYSTEM", | |
"rules": { | |
"next_check": { | |
"active": true, | |
"start_pattern": "LICENSE SYSTEM \\[.*\\] Next license update check is after (?<date>[\\d\\-]+)T(?<time>[\\d+\\:]+)", | |
"start_message": "Next update check after %{date} at %{time}" | |
}, | |
"opening": { | |
"active": true, | |
"start_pattern": "LICENSE SYSTEM \\[.*\\] Opening (?<address>.*)$", | |
"start_message": "Opening %{address}", | |
"store_lines": false, | |
"end_pattern": "(?:\\[CEF\\]|LICENSE SYSTEM \\[.*\\] Received)", | |
"end_message": false | |
}, | |
"received": { | |
"active": true, | |
"start_pattern": "LICENSE SYSTEM \\[.*\\] Received (?<address>.*)$", | |
"start_message": "Received %{address}", | |
"store_lines": false, | |
"end_pattern": "(?:\\[CEF\\]|LICENSE SYSTEM \\[.*\\] (?!Headers)|Cancelling)", | |
"end_message": false | |
}, | |
"cef_undefined": { | |
"active": true, | |
"start_pattern": "\\[CEF\\] undefined in.*$", | |
"type": "warning" | |
}, | |
"error": { | |
"active": true, | |
"start_pattern": "LICENSE SYSTEM \\[.*\\] (?<message>Error.*)", | |
"start_message": "%{message}", | |
"store_lines": true, | |
"end_pattern": "(?:^\\n|\\[CEF\\] undefined)", | |
"end_message": false, | |
"type": "error" | |
}, | |
"timeout": { | |
"active": true, | |
"start_pattern": "Cancelling.*Timeout", | |
"start_message": "Timeout while trying to activate license. Please try again later or contact [email protected]", | |
"type": "error" | |
}, | |
"starting_activation": { | |
"active": true, | |
"start_pattern": "LICENSE SYSTEM \\[.*\\] Starting license activation with account (?<account>.*)$", | |
"start_message": "Starting license activation for account %{account}" | |
}, | |
"successful_activation": { | |
"active": true, | |
"start_pattern": "LICENSE SYSTEM \\[.*\\] License activated successfully with user: (?<account>.*)$", | |
"start_message": "License activated for account %{account}", | |
"type": "success" | |
} | |
} | |
}, | |
"INIT": { | |
"active": true, | |
"silent": false, | |
"comment": "Initialization on editor launch", | |
"phase_start_pattern": "(?:COMMAND LINE|Initialize mono)", | |
"rules": { | |
"mono_options": { | |
"active": true, | |
"start_pattern": "Using monoOptions -(?<options>.+)" | |
}, | |
"batchmode_args": { | |
"active": true, | |
"start_pattern": "(?: COMMAND LINE|BATCHMODE) ARGUMENTS:", | |
"start_message": "Batchmode arguments:", | |
"store_lines": true, | |
"end_pattern": "(Successfully changed project path|Loading GUID)", | |
"end_message": "[...]" | |
}, | |
"GUID_loading": { | |
"active": true, | |
"start_pattern": "Loading GUID <-> Path mappings" | |
}, | |
"asset_DB_loading": { | |
"active": true, | |
"start_pattern": "Loading Asset Database ?... {,2}\\d+\\.?\\d*" | |
}, | |
"asset_DB_loading_FAIL": { | |
"active": true, | |
"start_pattern": "Loading Asset Database ?... ?\\[ Failed \\]", | |
"type": "warning" | |
}, | |
"engine_version": { | |
"active": true, | |
"start_pattern": "Initialize engine version: (?<version>\\d+\\.\\d+\\.\\d+\\w\\d+) \\((?<hash>\\w*)\\)", | |
"start_message": "Engine Initialization (version %{version})" | |
} | |
} | |
}, | |
"COMPILER": { | |
"active": true, | |
"silent": false, | |
"comment": "Compiling phase", | |
"phase_start_pattern": "- [sS]tarting compile", | |
"phase_end_pattern": "- Finished compile", | |
"rules": { | |
"target": { | |
"active": true, | |
"start_pattern": "- [sS]tarting compile (?<path>.+)(?<target>, for buildtarget .+)?", | |
"start_message": "Starting compile: %{path} %{target}" | |
}, | |
"finished": { | |
"active": true, | |
"start_pattern": "- Finished compile (?<path>.+)\\n", | |
"start_message": "Finished compilation for %{path}" | |
}, | |
"arguments": { | |
"active": false, | |
"start_pattern": "Compiler Commandline Arguments", | |
"end_pattern": "(^\\n|CompilerOutput)", | |
"store_lines": true, | |
"start_message": "Compiler command line arguments:", | |
"end_message": false | |
}, | |
"stdout": { | |
"active": true, | |
"start_pattern": "CompilerOutput:-stdout--exitcode: (?<exitcode>\\d)--compilationhadfailure: (?<fail>False|True)--outfile: (?<file>.+)", | |
"start_message": "Exitcode %{exitcode} on the standard output of the compiler (%{file})" | |
}, | |
"stderr": { | |
"active": false, | |
"start_pattern": "CompilerOutput:-stderr", | |
"start_message": "Errors and warnings:" | |
}, | |
"compiler_error": { | |
"active": true, | |
"start_pattern": "^(?<file>.+\\(\\d+,\\d+\\)): error (?<code>CS\\d+): (?<message>.+)", | |
"start_message": "Error %{code}: %{message} (%{file})", | |
"type": "error" | |
}, | |
"compiler_warning": { | |
"active": true, | |
"start_pattern": "^(?<file>.+\\(\\d+,\\d+\\)): warning (?<code>CS\\d+): (?<message>.+)", | |
"start_message": "Warning %{code}: %{message} (%{file})", | |
"type": "warning" | |
}, | |
"cancel": { | |
"active": true, | |
"start_pattern": "\\*\\*\\* Cancelled '(?<build>.+)' in (?<time>\\d+) seconds", | |
"start_message": "Cancelled '%{build}' after %{time}s", | |
"type": "error" | |
} | |
} | |
}, | |
"ASSET": { | |
"active": true, | |
"silent": false, | |
"comment": "Asset managing and packaging", | |
"phase_start_pattern": "Packing sprites", | |
"rules": { | |
"enlighten_failure": { | |
"active": true, | |
"start_pattern": "'(?<jobname>.+)' job failed with error code: (?<code>-?\\d+) \\('(?<message>.+)'\\)", | |
"start_message": false, | |
"end_pattern": "Filename: (?:.+/(?<file>\\w+\\.\\w+\\.\\w+))? Line: (?<line>-?\\d+)", | |
"end_message": "Enlighten job \"%{jobname}\" failed with status code %{code} %{file}(line %{line}): %{message}", | |
"type": "error" | |
}, | |
"pack_warning": { | |
"active": true, | |
"start_pattern": "WARNING: (?<message>.+)", | |
"start_message": "Warning: %{message}", | |
"type": "warning" | |
}, | |
"percentage": { | |
"active": true, | |
"start_pattern": "Textures\\s+\\d+\\.?\\d* .b\\s+\\d{1,3}\\.?\\d*%", | |
"end_pattern": "Complete size\\s+\\d+\\.?\\d* .b\\s+\\d{1,3}\\.?\\d*%", | |
"store_lines": true | |
}, | |
"command_invocation_failure": { | |
"active": true, | |
"start_pattern": "CommandInvokationFailure: (?<message>.+\\.)", | |
"store_lines": true, | |
"end_pattern": "^\\n", | |
"start_message": "[ANDROID] Command invocation failure: %{message}", | |
"end_message": false, | |
"type": "error" | |
}, | |
"command_invocation_failure_stderr": { | |
"active": true, | |
"start_pattern": "stderr\\[", | |
"store_lines": true, | |
"ignore_lines": ["^\\n"], | |
"end_pattern": "\\]\\n", | |
"start_message": "[ANDROID] Errors:", | |
"end_message": false, | |
"type": "error" | |
}, | |
"command_invocation_failure_stdout": { | |
"active": true, | |
"start_pattern": "stdout\\[", | |
"store_lines": true, | |
"ignore_lines": ["^\\n"], | |
"end_pattern": "\\]\\n", | |
"start_message": "[ANDROID] Warnings:", | |
"end_message": false, | |
"type": "warning" | |
}, | |
"command_invocation_failure_stack": { | |
"active": true, | |
"start_pattern": "[Ee]xit code: (?<code>\\d+)", | |
"end_pattern": "Filename: (?:.+/(?<file>\\w+\\.\\w+))? Line: (?<line>-?\\d+)", | |
"start_message": false, | |
"end_message": "[ANDROID] %{file}(line %{line}) Exit code %{code}" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment