Update manual pages for 2.0.0-rc1
[babeltrace.git] / doc / man / babeltrace2-sink.text.pretty.7.txt
CommitLineData
e70712b3 1= babeltrace2-sink.text.pretty(7)
0659f3af 2:manpagetype: component class
e70712b3 3:revdate: 14 September 2019
0659f3af
PP
4
5
e70712b3
PP
6== NAME
7
8babeltrace2-sink.text.pretty - Babeltrace 2's pretty-printing sink
0659f3af
PP
9component class
10
11
e70712b3
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.
0659f3af 31
e70712b3
PP
32The component prints warnings on the standard error stream when it
33consumes a discarded events or discarded packets message.
0659f3af 34
e70712b3
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.
0659f3af 39
e70712b3
PP
40This component class is equivalent to the `text` output format of
41man:babeltrace(1) (Babeltrace~1 command-line tool).
0659f3af
PP
42
43
e70712b3 44== INITIALIZATION PARAMETERS
0659f3af 45
e70712b3 46param:clock-cycles=`yes` vtype:[optional boolean]::
0659f3af
PP
47 Print event times in clock cycles instead of hours, minutes,
48 seconds, and nanoseconds.
49
e70712b3 50param:clock-date=`yes` vtype:[optional boolean]::
0659f3af
PP
51 Print event times _and_ dates.
52
e70712b3 53param:clock-gmt=`yes` vtype:[optional boolean]::
0659f3af
PP
54 Print event times in the GMT time zone instead of the local time
55 zone.
56
e70712b3 57param:clock-seconds=`yes` vtype:[optional boolean]::
0659f3af
PP
58 Print event times in seconds instead of hours, minutes,
59 seconds, and nanoseconds.
60
e70712b3 61param:color=(`never` | `auto` | `always`) vtype:[optional string]::
0659f3af
PP
62 Force the terminal color support, one of:
63+
64--
65`auto` (default)::
66 Only emit terminal color codes when the standard output and error
67 streams are connected to a color-capable terminal.
68
69`never`::
70 Never emit terminal color codes.
71
72`always`::
73 Always emit terminal color codes.
74--
75+
76The `BABELTRACE_TERM_COLOR` environment variable overrides this
77parameter.
78
e70712b3 79param:field-default=(`show` | `hide`) vtype:[optional string]::
0659f3af
PP
80 By default, show or hide all the fields. This sets the default value
81 of all the parameters which start with `field-`.
82
e70712b3 83param:field-emf=(`yes` | `no`) vtype:[optional boolean]::
0659f3af
PP
84 Show or hide the event's Eclipse Modeling Framework URI field.
85
e70712b3 86param:field-loglevel=(`yes` | `no`) vtype:[optional boolean]::
0659f3af
PP
87 Show or hide the event's logging level field.
88
e70712b3 89param:field-trace=(`yes` | `no`) vtype:[optional boolean]::
0659f3af
PP
90 Show or hide the trace name field.
91
e70712b3 92param:field-trace:domain=(`yes` | `no`) vtype:[optional boolean]::
0659f3af
PP
93 Show or hide the tracing domain field.
94
e70712b3 95param:field-trace:hostname=(`yes` | `no`) vtype:[optional boolean]::
0659f3af
PP
96 Show or hide the hostname field.
97
e70712b3 98param:field-trace:procname=(`yes` | `no`) vtype:[optional boolean]::
0659f3af
PP
99 Show or hide the process name field.
100
e70712b3 101param:field-trace:vpid=(`yes` | `no`) vtype:[optional boolean]::
0659f3af
PP
102 Show or hide the virtual process ID field.
103
e70712b3 104param:name-context=(`yes` | `no`) vtype:[optional boolean]::
0659f3af
PP
105 Show or hide the field names in the context scopes.
106
e70712b3 107param:name-default=(`show` | `hide`) vtype:[optional string]::
0659f3af
PP
108 By default, show or hide all the names. This sets the
109 default value of all the parameters which start with `name-`.
110
e70712b3 111param:name-header=(`yes` | `no`) vtype:[optional boolean]::
0659f3af
PP
112 Show or hide the field names in the header scopes.
113
e70712b3 114param:name-payload=(`yes` | `no`) vtype:[optional boolean]::
0659f3af
PP
115 Show or hide the field names in the event payload scopes.
116
e70712b3 117param:name-scope=(`yes` | `no`) vtype:[optional boolean]::
0659f3af
PP
118 Show or hide the scope names.
119
e70712b3 120param:no-delta=`yes` vtype:[optional boolean]::
0659f3af
PP
121 Do not print the time delta between consecutive lines.
122
e70712b3 123param:path='PATH' vtype:[optional string]::
0659f3af
PP
124 Print the text output to the file 'PATH' instead of the standard
125 output.
126
e70712b3 127param:verbose=`yes` vtype:[optional boolean]::
0659f3af
PP
128 Turn the verbose mode on.
129
130
e70712b3
PP
131== PORTS
132
133----
134+------------------+
135| sink.text.pretty |
136| |
137@ in |
138+------------------+
139----
0659f3af
PP
140
141
e70712b3
PP
142=== Input
143
144`in`::
145 Single input port.
0659f3af
PP
146
147
e70712b3
PP
148== ENVIRONMENT VARIABLES
149
150include::common-common-env.txt[]
0659f3af
PP
151
152
153include::common-footer.txt[]
154
155
e70712b3
PP
156== SEE ALSO
157
158man:babeltrace2-intro(7),
159man:babeltrace2-plugin-text(7)
This page took 0.041662 seconds and 4 git commands to generate.