table of contents
BABELTRACE2-SINK.(7) | Babeltrace 2 manual | BABELTRACE2-SINK.(7) |
NAME¶
babeltrace2-sink.text.pretty - Babeltrace 2: Pretty-printing sink component class
DESCRIPTION¶
A Babeltrace 2 sink.text.pretty component pretty-prints the events, discarded events, and discarded packets messages it consumes to the standard output or to a file.
+------------------+
| sink.text.pretty |
| +--> Pretty-printed messages to Messages -->@ in | the standard output or a file and
+------------------+ to the standard error
See babeltrace2-intro(7) to learn more about the Babeltrace 2 project and its core concepts.
By default, a sink.text.pretty component pretty-prints to the standard output. You can use the path parameter to make the component write to a file instead.
The component prints warnings on the standard error stream when it consumes a discarded events or discarded packets message.
If you don’t use the path parameter and the standard output of the application is connected to a color-capable terminal, the component emits terminal color codes to enhance the text output. You can use the color parameter to force the color support or to disable it.
This component class is equivalent to the text output format of babeltrace(1) (Babeltrace 1 command-line tool).
INITIALIZATION PARAMETERS¶
clock-cycles=VAL [optional boolean]
Default: false.
clock-date=VAL [optional boolean]
Default: false.
clock-gmt=VAL [optional boolean]
Default: false.
clock-seconds=VAL [optional boolean]
Default: false.
color=(never | auto | always) [optional string]
auto (default)
never
always
The BABELTRACE_TERM_COLOR environment variable overrides this parameter.
field-default=(show | hide) [optional string]
field-emf=VAL [optional boolean]
Default, depending on the field-default parameter:
show
hide
Not set
field-loglevel=VAL [optional boolean]
Default, depending on the field-default parameter:
show
hide
Not set
field-trace=VAL [optional boolean]
Default, depending on the field-default parameter:
show
hide
Not set
field-trace:domain=VAL [optional boolean]
Default, depending on the field-default parameter:
show
hide
Not set
field-trace:hostname=VAL [optional boolean]
Default, depending on the field-default parameter:
show
hide
Not set
field-trace:procname=VAL [optional boolean]
Default, depending on the field-default parameter:
show
hide
Not set
field-trace:vpid=VAL [optional boolean]
Default, depending on the field-default parameter:
show
hide
Not set
name-default=(show | hide) [optional string]
name-header=VAL [optional boolean]
Default, depending on the name-default parameter:
show
hide
Not set
name-context=VAL [optional boolean]
Default, depending on the name-default parameter:
show
hide
Not set
name-payload=VAL [optional boolean]
Default, depending on the name-default parameter:
show
hide
Not set
name-scope=VAL [optional boolean]
Default, depending on the name-default parameter:
show
hide
Not set
no-delta=VAL [optional boolean]
Default: false.
path=PATH [optional string]
print-enum-flags=VAL [optional boolean]
When printing the value of an enumeration field without any corresponding mapping, a sink.text.pretty component splits the value into its individual bit values: if each set bit has a corresponding mapping, then it considers that those mappings are in fact bit flags.
If a set bit has no corresponding mapping, then the component prints <unknown>.
verbose=VAL [optional boolean]
Default: false.
PORTS¶
+------------------+ | sink.text.pretty | | | @ in | +------------------+
Input¶
in
ENVIRONMENT VARIABLES¶
BABELTRACE_EXEC_ON_ABORT=CMDLINE
The application only aborts when the executed command returns, ignoring its exit status.
This environment variable is ignored when the application has the setuid or the setgid access right flag set.
BABELTRACE_TERM_COLOR=(AUTO | NEVER | ALWAYS)
The available values are:
AUTO
NEVER
ALWAYS
BABELTRACE_TERM_COLOR_BRIGHT_MEANS_BOLD=0
BUGS¶
If you encounter any issue or usability problem, please report it on the Babeltrace bug tracker (see <https://bugs.lttng.org/projects/babeltrace>).
RESOURCES¶
The Babeltrace project shares some communication channels with the LTTng project (see <https://lttng.org/>).
AUTHORS¶
The Babeltrace 2 project is the result of hard work by many regular developers and occasional contributors.
The current project maintainer is Jérémie Galarneau <mailto:jeremie.galarneau@efficios.com>.
COPYRIGHT¶
This component class is part of the Babeltrace 2 project.
Babeltrace is distributed under the MIT license (see <https://opensource.org/licenses/MIT>).
SEE ALSO¶
15 January 2025 | Babeltrace 2.1.0 |