doc/man: make default values of boolean init. params. clearer
[babeltrace.git] / doc / man / babeltrace2-sink.text.pretty.7.txt
CommitLineData
2facbdc3 1= babeltrace2-sink.text.pretty(7)
838dd456 2:manpagetype: component class
75daa108 3:revdate: 1 September 2023
838dd456
PP
4
5
2facbdc3
PP
6== NAME
7
8babeltrace2-sink.text.pretty - Babeltrace 2's pretty-printing sink
838dd456
PP
9component class
10
11
2facbdc3
PP
12== DESCRIPTION
13
14A Babeltrace~2 compcls:sink.text.pretty component pretty-prints the
15events, discarded events, and discarded packets messages it consumes to
16the standard output or to a file.
17
18----
19 +------------------+
20 | sink.text.pretty |
21 | +--> Pretty-printed messages to
22Messages -->@ in | the standard output or a file and
23 +------------------+ to the standard error
24----
25
26include::common-see-babeltrace2-intro.txt[]
27
28By default, a compcls:sink.text.pretty component pretty-prints to the
29standard output. You can use the param:path parameter to make the
30component write to a file instead.
838dd456 31
2facbdc3
PP
32The component prints warnings on the standard error stream when it
33consumes a discarded events or discarded packets message.
838dd456 34
2facbdc3
PP
35If you don't use the param:path parameter and the application's standard
36output is connected to a color-capable terminal, the component emits
37terminal color codes to enhance the text output. You can use the
38param:color parameter to force the color support or to disable it.
838dd456 39
2facbdc3
PP
40This component class is equivalent to the `text` output format of
41man:babeltrace(1) (Babeltrace~1 command-line tool).
838dd456
PP
42
43
2facbdc3 44== INITIALIZATION PARAMETERS
838dd456 45
75daa108
PP
46param:clock-cycles='VAL' vtype:[optional boolean]::
47 If 'VAL' is true, then print event times in clock cycles instead of
48 hours, minutes, seconds, and nanoseconds.
49+
50Default: false.
838dd456 51
75daa108
PP
52param:clock-date='VAL' vtype:[optional boolean]::
53 If 'VAL' is true, then print event times _and_ dates.
54+
55Default: false.
838dd456 56
75daa108
PP
57param:clock-gmt='VAL' vtype:[optional boolean]::
58 If 'VAL' is true, then print event times in the GMT time zone
59 instead of the local time zone.
60+
61Default: false.
838dd456 62
75daa108
PP
63param:clock-seconds='VAL' vtype:[optional boolean]::
64 If 'VAL' is true, then print event times in seconds instead of
65 hours, minutes, seconds, and nanoseconds.
66+
67Default: false.
838dd456 68
2facbdc3 69param:color=(`never` | `auto` | `always`) vtype:[optional string]::
838dd456
PP
70 Force the terminal color support, one of:
71+
72--
73`auto` (default)::
74 Only emit terminal color codes when the standard output and error
75 streams are connected to a color-capable terminal.
76
77`never`::
78 Never emit terminal color codes.
79
80`always`::
81 Always emit terminal color codes.
82--
83+
84The `BABELTRACE_TERM_COLOR` environment variable overrides this
85parameter.
86
2facbdc3 87param:field-default=(`show` | `hide`) vtype:[optional string]::
838dd456
PP
88 By default, show or hide all the fields. This sets the default value
89 of all the parameters which start with `field-`.
90
75daa108 91param:field-emf='VAL' vtype:[optional boolean]::
838dd456 92 Show or hide the event's Eclipse Modeling Framework URI field.
75daa108
PP
93+
94Default, depending on the param:field-default parameter:
95+
96--
97`show`::
98 True
99
100`hide`::
101 False
102
103Not set::
104 False
105--
838dd456 106
75daa108 107param:field-loglevel='VAL' vtype:[optional boolean]::
838dd456 108 Show or hide the event's logging level field.
75daa108
PP
109+
110Default, depending on the param:field-default parameter:
111+
112--
113`show`::
114 True
838dd456 115
75daa108
PP
116`hide`::
117 False
118
119Not set::
120 False
121--
122
123param:field-trace='VAL' vtype:[optional boolean]::
838dd456 124 Show or hide the trace name field.
75daa108
PP
125+
126Default, depending on the param:field-default parameter:
127+
128--
129`show`::
130 True
838dd456 131
75daa108
PP
132`hide`::
133 False
134
135Not set::
136 False
137--
138
139param:field-trace:domain='VAL' vtype:[optional boolean]::
838dd456 140 Show or hide the tracing domain field.
75daa108
PP
141+
142Default, depending on the param:field-default parameter:
143+
144--
145`show`::
146 True
147
148`hide`::
149 False
150
151Not set::
152 False
153--
838dd456 154
75daa108 155param:field-trace:hostname='VAL' vtype:[optional boolean]::
838dd456 156 Show or hide the hostname field.
75daa108
PP
157+
158Default, depending on the param:field-default parameter:
159+
160--
161`show`::
162 True
838dd456 163
75daa108
PP
164`hide`::
165 False
166
167Not set::
168 True
169--
170
171param:field-trace:procname='VAL' vtype:[optional boolean]::
838dd456 172 Show or hide the process name field.
75daa108
PP
173+
174Default, depending on the param:field-default parameter:
175+
176--
177`show`::
178 True
838dd456 179
75daa108
PP
180`hide`::
181 False
182
183Not set::
184 True
185--
186
187param:field-trace:vpid='VAL' vtype:[optional boolean]::
838dd456 188 Show or hide the virtual process ID field.
75daa108
PP
189+
190Default, depending on the param:field-default parameter:
191+
192--
193`show`::
194 True
838dd456 195
75daa108
PP
196`hide`::
197 False
198
199Not set::
200 True
201--
838dd456 202
2facbdc3 203param:name-default=(`show` | `hide`) vtype:[optional string]::
838dd456
PP
204 By default, show or hide all the names. This sets the
205 default value of all the parameters which start with `name-`.
206
75daa108 207param:name-header='VAL' vtype:[optional boolean]::
838dd456 208 Show or hide the field names in the header scopes.
75daa108
PP
209+
210Default, depending on the param:name-default parameter:
211+
212--
213`show`::
214 True
215
216`hide`::
217 False
218
219Not set::
220 False
221--
838dd456 222
75daa108
PP
223param:name-context='VAL' vtype:[optional boolean]::
224 Show or hide the field names in the context scopes.
225+
226Default, depending on the param:name-default parameter:
227+
228--
229`show`::
230 True
231
232`hide`::
233 False
234
235Not set::
236 True
237--
238
239param:name-payload='VAL' vtype:[optional boolean]::
838dd456 240 Show or hide the field names in the event payload scopes.
75daa108
PP
241+
242Default, depending on the param:name-default parameter:
243+
244--
245`show`::
246 True
247
248`hide`::
249 False
250
251Not set::
252 True
253--
838dd456 254
75daa108 255param:name-scope='VAL' vtype:[optional boolean]::
838dd456 256 Show or hide the scope names.
75daa108
PP
257+
258Default, depending on the param:name-default parameter:
259+
260--
261`show`::
262 True
838dd456 263
75daa108
PP
264`hide`::
265 False
266
267Not set::
268 False
269--
270
271param:no-delta='VAL' vtype:[optional boolean]::
272 If 'VAL' is true, then do not print the time delta between
273 consecutive lines.
274+
275Default: false.
838dd456 276
2facbdc3 277param:path='PATH' vtype:[optional string]::
838dd456
PP
278 Print the text output to the file 'PATH' instead of the standard
279 output.
280
75daa108
PP
281param:verbose='VAL' vtype:[optional boolean]::
282 If 'VAL' if true, then turn the verbose mode on.
283+
284Default: false.
838dd456
PP
285
286
2facbdc3
PP
287== PORTS
288
289----
290+------------------+
291| sink.text.pretty |
292| |
293@ in |
294+------------------+
295----
838dd456
PP
296
297
2facbdc3
PP
298=== Input
299
300`in`::
301 Single input port.
838dd456
PP
302
303
2facbdc3
PP
304== ENVIRONMENT VARIABLES
305
306include::common-common-env.txt[]
838dd456
PP
307
308
309include::common-footer.txt[]
310
311
2facbdc3
PP
312== SEE ALSO
313
314man:babeltrace2-intro(7),
315man:babeltrace2-plugin-text(7)
This page took 0.057109 seconds and 4 git commands to generate.