Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sassembla/9366184 to your computer and use it in GitHub Desktop.
Save sassembla/9366184 to your computer and use it in GitHub Desktop.
// ログの内容を流し込むとエディタ上に表示したりするやつ。
defineFilter: {
"name": "unity",
"filters": [
{
// log line of error
"(.*)[(]([0-9].*?),.*[)]: error .*: (.*)": {
"injects": {
"groups[0]": "name",
"groups[1]": "line",
"groups[2]": "reason"
},
"selectors": [
{
"showAtLog<-name, line, reason": {
"format": "ERROR: on [name]:[line] [reason]"
}
},
{
"appendRegion<-name, line, reason": {
"format": "\"ERROR: [reason]\"",
"condition": "keyword"
}
}
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment