summaryrefslogtreecommitdiffstats
path: root/src/formats/tcf_log.json
blob: 335d3ff488c763593eb71c86fe207614f9bcb4ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
    "$schema": "https://lnav.org/schemas/format-v1.schema.json",
    "tcf_log": {
        "title": "TCF Log",
        "description": "Target Communication Framework log",
        "url": [
            "http://wiki.eclipse.org/TCF",
            "http://git.eclipse.org/c/tcf/org.eclipse.tcf.git/tree/target_explorer/plugins/org.eclipse.tm.te.tcf.log.core/src/org/eclipse/tm/te/tcf/log/core/internal/listener/ChannelTraceListener.java?id=b6e81bb8405f99dda2764b22cff876fa00f734f5#n144"
        ],
        "regex": {
            "std": {
                "pattern": "^TCF (?<timestamp>\\d{2}:\\d{2}.\\d{3,6}): (?:Server-Properties: (?:.*)|channel server|\\w+: (?<dir>--->|<---) (?<type>\\w)(?: (?<token>\\w+))?(?: (?<service>\\w+))?(?: (?<name>\\w+))?(?: (?<msg>.*))?(?: <eom>))(?<body>.*)$"
            }
        },
        "value": {
            "dir": {
                "kind": "string"
            },
            "type": {
                "kind": "string",
                "identifier": true
            },
            "token": {
                "kind": "string",
                "identifier": true
            },
            "service": {
                "kind": "string",
                "identifier": true
            },
            "name": {
                "kind": "string",
                "identifier": true
            },
            "msg": {
                "kind": "json"
            }
        },
        "sample": [
            {
                "line": "TCF 29:47.191: Server-Properties: {\"Name\":\"TCF Protocol Logger\",\"OSName\":\"Linux 3.2.0-60-generic\",\"UserName\":\"xavier\",\"AgentID\":\"1fde3dd1-d4be-4f79-8090-6f8d212f03bf\",\"TransportName\":\"TCP\",\"Proxy\":\"\",\"ValueAdd\":\"1\",\"Port\":\"1534\"}"
            },
            {
                "line": "TCF 30:11.475: 0: <--- R 2  [\"P1\"] <eom>"
            },
            {
                "line": "TCF 30:11.475: 0: ---> C 4 RunControl getChildren \"P1\" <eom>"
            }
        ]
    }
}