|
7 | 7 | "multiline": true, |
8 | 8 | "regex": { |
9 | 9 | "std": { |
10 | | - "pattern": "^(?J:(?:(?<timestamp>\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}.\\d+) (?:(?<level>[A-Z]+) \\[(?<module>[\\w \\/]+)\\] (?<component>[\\w.]+): (?<body>.*)|(?:(?:\\^){3} \\d+ similar messages omitted (?:\\^){3})))|(?:(?:(?:[\\w.]+(?<level>Exception):)|(?:\\\\u0009at)) .*))$", |
11 | | - "comments": [ |
12 | | - "The I2P router uses several log line variants that largely differ in their formats.", |
13 | | - "editing a variant should be done below in subformats for better readability and understandability,", |
14 | | - "and then merged into the pattern above." |
15 | | - ], |
16 | | - "subformats": { |
17 | | - "variant_normal": "^(?<timestamp>\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}.\\d+) (?<level>[A-Z]+) \\[(?<module>[\\w \\\/]+)\\] (?<component>[\\w.]+): (?<body>.*)$", |
18 | | - "variant_omit": "^(?<timestamp>\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}.\\d+) (?:\\^){3} \\d+ similar messages omitted (?:\\^){3}$", |
19 | | - "variant_exception": "^(?:(?:(?:[\\w.]+(?<level>Exception):)|(?:\\\\0009at)) .*)$" |
20 | | - } |
21 | | - }, |
22 | | - "teszt": { |
23 | | - "pattern": "(Exception)|(\\s+handler 1/1)|(\\sat [\\w.]+)|(similar messages omitted)", |
24 | | - "module-format": true |
| 10 | + "pattern": "^(?J:(?:(?<timestamp>\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}.\\d+) (?:(?<level>[A-Z]+) \\[(?<module>[\\w \\/]+)\\] (?<component>[\\w.]+): (?<body>.*)|(?:(?:\\^){3} \\d+ similar messages omitted (?:\\^){3})))|(?:(?:(?:[\\w.]+(?<level>Exception):)|(?:\\\\u0009at)) .*))$" |
| 11 | + // The I2P router uses several log line variants that largely differ in their formats. |
| 12 | + // Editing a variant should be done below in subformats for better readability and understandability, |
| 13 | + // and then merged into the pattern above. |
| 14 | + // subformats: |
| 15 | + // "variant_normal": "^(?<timestamp>\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}.\\d+) (?<level>[A-Z]+) \\[(?<module>[\\w \\\/]+)\\] (?<component>[\\w.]+): (?<body>.*)$" |
| 16 | + // "variant_omit": "^(?<timestamp>\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}.\\d+) (?:\\^){3} \\d+ similar messages omitted (?:\\^){3}$" |
| 17 | + // "variant_exception": "^(?:(?:(?:[\\w.]+(?<level>Exception):)|(?:\\\\0009at)) .*)$" |
25 | 18 | } |
26 | 19 | }, |
27 | 20 | "value": { |
|
47 | 40 | "level": "warning" |
48 | 41 | }, |
49 | 42 | { |
50 | | - "line": "2023-10-25 03:33:42.121 ^^^ 2 similar messages omitted ^^^", |
51 | | - "comment": "when lines are repated, the replacmeent line does not have a log level" |
| 43 | + "line": "2023-10-25 03:33:42.121 ^^^ 2 similar messages omitted ^^^" |
| 44 | + // when lines are repated, the replacmeent line does not have a log level |
52 | 45 | }, |
53 | 46 | { |
54 | | - "line": "java.io.IOException: Peer is dead: F~UzS1mTN3XYlnOfidMBv5Z4lHI7dsCZ8N5mxpyc-OU=\\n", |
55 | | - "comment": "handle exception lines" |
| 47 | + "line": "java.io.IOException: Peer is dead: F~UzS1mTN3XYlnOfidMBv5Z4lHI7dsCZ8N5mxpyc-OU=\\n" |
| 48 | + // handle exception lines |
56 | 49 | }, |
57 | 50 | { |
58 | 51 | "line": "\\u0009at net.i2p.router.transport.udp.PeerState2.getNextPacketNumber(PeerState2.java:326)\\n" |
|
0 commit comments