^(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})\s-\s(\w+)\s-\s([\w.]+)\s-\s(.+)
^\d
yyyy-MM-dd HH:mm:ss
- Time: 1
- Severity: 3
- Category: 2
import enum | |
import json | |
from pathlib import Path | |
class Encoder(json.JSONEncoder): | |
def default(self, o): | |
if isinstance(o, enum.Enum): | |
return o.value | |
return o.__dict__ |
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: supervisord | |
# Required-Start: $remote_fs | |
# Required-Stop: $remote_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Example initscript | |
# Description: This file should be used to construct scripts to be | |
# placed in /etc/init.d. |