0a4ebc2eb6
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
7 lines
186 B
Text
7 lines
186 B
Text
def trim: sub("^\\s+"; "") | sub("\\s+$"; "");
|
|
|
|
def message: sub("^\\[\\w+\\]:"; "")|trim;
|
|
|
|
def log_level: (. / ":")[0][1:-1]|ascii_downcase;
|
|
|
|
def reformat: "\(message) (\(log_level))";
|