Commit b5b7bf5
src,cli: support compact (one-line) JSON reports
Multi-line JSON is more human readable, but harder for log aggregators
to consume, they usually require a log message per line, particularly
for JSON. Compact output will be consumable by aggregators such as EFK
(Elastic Search-Fluentd-Kibana), LogDNA, DataDog, etc.
PR-URL: #32254
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>1 parent 5adaf10 commit b5b7bf5Copy full SHA for b5b7bf5
File tree
Expand file treeCollapse file tree
13 files changed
+130
-20
lines changedOpen diff view settings
Filter options
- doc
- api
- lib/internal/process
- src
- test
- common
- report
Expand file treeCollapse file tree
13 files changed
+130
-20
lines changedOpen diff view settings
Collapse file
+10Lines changed: 10 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
592 | 592 | |
593 | 593 | |
594 | 594 | |
| 595 | + |
| 596 | + |
| 597 | + |
| 598 | + |
| 599 | + |
| 600 | + |
| 601 | + |
| 602 | + |
| 603 | + |
595 | 604 | |
596 | 605 | |
597 | 606 | |
| ||
1136 | 1145 | |
1137 | 1146 | |
1138 | 1147 | |
| 1148 | + |
1139 | 1149 | |
1140 | 1150 | |
1141 | 1151 | |
|
Collapse file
+15Lines changed: 15 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1767 | 1767 | |
1768 | 1768 | |
1769 | 1769 | |
| 1770 | + |
| 1771 | + |
| 1772 | + |
| 1773 | + |
| 1774 | + |
| 1775 | + |
| 1776 | + |
| 1777 | + |
| 1778 | + |
| 1779 | + |
| 1780 | + |
| 1781 | + |
| 1782 | + |
| 1783 | + |
| 1784 | + |
1770 | 1785 | |
1771 | 1786 | |
1772 | 1787 | |
|
Collapse file
+4Lines changed: 4 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
419 | 419 | |
420 | 420 | |
421 | 421 | |
| 422 | + |
| 423 | + |
| 424 | + |
| 425 | + |
422 | 426 | |
423 | 427 | |
424 | 428 | |
|
Collapse file
+5Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
281 | 281 | |
282 | 282 | |
283 | 283 | |
| 284 | + |
| 285 | + |
| 286 | + |
| 287 | + |
| 288 | + |
284 | 289 | |
285 | 290 | |
286 | 291 | |
|
Collapse file
lib/internal/process/report.js
Copy file name to clipboardExpand all lines: lib/internal/process/report.js+12-1Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
6 | | - |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
7 | 11 | |
8 | 12 | |
9 | 13 | |
| ||
45 | 49 | |
46 | 50 | |
47 | 51 | |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
48 | 59 | |
49 | 60 | |
50 | 61 | |
|
Collapse file
+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
577 | 577 | |
578 | 578 | |
579 | 579 | |
| 580 | + |
| 581 | + |
| 582 | + |
| 583 | + |
580 | 584 | |
581 | 585 | |
582 | 586 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
187 | 187 | |
188 | 188 | |
189 | 189 | |
| 190 | + |
190 | 191 | |
191 | 192 | |
192 | 193 | |
|
Collapse file
+8-5Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
52 | 52 | |
53 | 53 | |
54 | 54 | |
55 | | - |
| 55 | + |
| 56 | + |
56 | 57 | |
57 | 58 | |
58 | 59 | |
| ||
126 | 127 | |
127 | 128 | |
128 | 129 | |
| 130 | + |
129 | 131 | |
130 | | - |
| 132 | + |
131 | 133 | |
132 | 134 | |
133 | 135 | |
| ||
145 | 147 | |
146 | 148 | |
147 | 149 | |
148 | | - |
| 150 | + |
149 | 151 | |
150 | 152 | |
151 | 153 | |
| ||
156 | 158 | |
157 | 159 | |
158 | 160 | |
159 | | - |
| 161 | + |
| 162 | + |
160 | 163 | |
161 | 164 | |
162 | 165 | |
| ||
169 | 172 | |
170 | 173 | |
171 | 174 | |
172 | | - |
| 175 | + |
173 | 176 | |
174 | 177 | |
175 | 178 | |
|
Collapse file
+34-12Lines changed: 34 additions & 12 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
65 | 65 | |
66 | 66 | |
67 | 67 | |
68 | | - |
| 68 | + |
| 69 | + |
69 | 70 | |
| 71 | + |
70 | 72 | |
71 | 73 | |
72 | 74 | |
| 75 | + |
73 | 76 | |
74 | 77 | |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
75 | 86 | |
| 87 | + |
76 | 88 | |
77 | 89 | |
78 | | - |
| 90 | + |
79 | 91 | |
80 | 92 | |
81 | 93 | |
82 | 94 | |
83 | 95 | |
84 | 96 | |
85 | 97 | |
86 | | - |
| 98 | + |
87 | 99 | |
88 | 100 | |
89 | 101 | |
| ||
92 | 104 | |
93 | 105 | |
94 | 106 | |
95 | | - |
| 107 | + |
96 | 108 | |
97 | 109 | |
98 | | - |
| 110 | + |
| 111 | + |
| 112 | + |
99 | 113 | |
100 | 114 | |
101 | 115 | |
102 | 116 | |
103 | 117 | |
104 | 118 | |
105 | 119 | |
106 | | - |
| 120 | + |
107 | 121 | |
108 | 122 | |
109 | | - |
| 123 | + |
| 124 | + |
| 125 | + |
110 | 126 | |
111 | 127 | |
112 | 128 | |
113 | 129 | |
114 | | - |
| 130 | + |
115 | 131 | |
116 | 132 | |
117 | 133 | |
| 134 | + |
| 135 | + |
| 136 | + |
| 137 | + |
118 | 138 | |
119 | 139 | |
120 | 140 | |
121 | 141 | |
122 | | - |
| 142 | + |
123 | 143 | |
124 | 144 | |
125 | 145 | |
| ||
128 | 148 | |
129 | 149 | |
130 | 150 | |
131 | | - |
| 151 | + |
132 | 152 | |
133 | 153 | |
134 | | - |
| 154 | + |
| 155 | + |
135 | 156 | |
136 | 157 | |
137 | 158 | |
138 | 159 | |
139 | 160 | |
140 | 161 | |
141 | 162 | |
142 | | - |
| 163 | + |
143 | 164 | |
144 | 165 | |
145 | 166 | |
| ||
177 | 198 | |
178 | 199 | |
179 | 200 | |
| 201 | + |
180 | 202 | |
181 | 203 | |
182 | 204 | |
|
Collapse file
+14Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
68 | 68 | |
69 | 69 | |
70 | 70 | |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
71 | 83 | |
72 | 84 | |
73 | 85 | |
| ||
161 | 173 | |
162 | 174 | |
163 | 175 | |
| 176 | + |
| 177 | + |
164 | 178 | |
165 | 179 | |
166 | 180 | |
|
0 commit comments