Skip to content

Instantly share code, notes, and snippets.

@logistic-bot
Created July 26, 2020 16:06
Show Gist options
  • Save logistic-bot/7c7e8328dc2ea44b085696faf3f496ff to your computer and use it in GitHub Desktop.
Save logistic-bot/7c7e8328dc2ea44b085696faf3f496ff to your computer and use it in GitHub Desktop.
{
"unconstrained": {
"title": "Unconstrained self-modification",
"description": "Log format for the game unconstrained self-modification",
"regex": {
"basic": {
"pattern": "^(?<timestamp>.*) (?<level>(INFO|CRITICAL|DEBUG|ERROR)) (?<module>.*):(?<func>.*):(?<lineno>\\d+) | (?<m>.*)$"
}
},
"level-field": "level",
"level": {
"debug": "DEBUG",
"info": "INFO",
"error": "ERROR",
"critical": "CRITICAL"
},
"value": {
"module": {
"kind": "string",
"identifier": true
},
"func": {
"kind": "string",
"identifier": false
},
"line": {
"kind": "integer",
"identifier": false
},
"m": {
"kind": "string",
"identifier": false
},
"timestamp": {
"kind": "string",
"hidden": true
},
"level": {
"kind": "string",
"identifier": false
}
},
"highlights": {
"module": {
"color": "Blue",
"background-color": "Black"
}
},
"sample": [
{
"line": "2020-07-26 17:05:11,675 CRITICAL src.core.engine:start:65 | KeyboardInterrupt",
"level": "critical"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment