Skip to content

Instantly share code, notes, and snippets.

@ilkinulas
Created February 2, 2016 14:24
Show Gist options
  • Save ilkinulas/3c73f17557a7dcc910d3 to your computer and use it in GitHub Desktop.
Save ilkinulas/3c73f17557a7dcc910d3 to your computer and use it in GitHub Desktop.
GinRummy log patterns
# [PackageDev] target_format: plist, ext: tmLanguage
---
name: GinRummyLog
scopeName: gin.log
fileTypes: [ginlog]
uuid: 786ded00-92e4-4105-a21a-fd030af63c5a
patterns:
- name: text.command
match: \"command\":[0-9]{4}
- name: text.command_name
match: \"command_name\":\"(.*?)\"
captures:
'1': {name : text.command_name.1}
- name: text.fsm
match: (.*)(FSM :.*(\[.*\]).*)
captures:
'1': {name : text.fsm.prefix}
'2': {name : text.fsm.suffix}
'3': {name : text.fsm.event}
- name: text.errors
match: (.*(\"error_code\":[1-9]).*)
captures:
'1': {name : text.error.fullline}
'2': {name : text.error.code}
- name: text.ping
match: .*\"command\":8888.*
- name: text.exception.message
match: (.*)Exception(.*)
- name: text.exception.stacktrace
match: ^((?![0-9]{8}).)*$
- name: text.log.error
match: .*\| E \|.*
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment