summaryrefslogtreecommitdiffstats
path: root/test/formats/customlevel/format.json
diff options
context:
space:
mode:
Diffstat (limited to 'test/formats/customlevel/format.json')
-rw-r--r--test/formats/customlevel/format.json25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/formats/customlevel/format.json b/test/formats/customlevel/format.json
new file mode 100644
index 0000000..dde41fe
--- /dev/null
+++ b/test/formats/customlevel/format.json
@@ -0,0 +1,25 @@
+{
+ "$schema": "https://lnav.org/schemas/format-v1.schema.json",
+ "leveltest_log": {
+ "description": "Log format used for testing levels",
+ "regex": {
+ "line": {
+ "pattern": "^(?<timestamp>\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}) (?<level>[^ ]+) (?<body>.*)$"
+ }
+ },
+ "level": {
+ "trace": "trace",
+ "debug": "debug",
+ "debug2": "debug2",
+ "debug3": "debug3",
+ "info": "info",
+ "warning": "warn",
+ "fatal": "fatal"
+ },
+ "sample": [
+ {
+ "line": "2016-06-30 12:00:01 trace tracemessage"
+ }
+ ]
+ }
+}