NAMEDESCRIPTIONINITIALIZATION PARAMETERSPORTSENVIRONMENT VARIABLESSEE ALSO

babeltrace2-sink.text.pretty(7)

NAME

babeltrace2-sink.text.pretty — Babeltrace 2's 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 application’s standard output 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=yes [optional boolean]

Print event times in clock cycles instead of hours, minutes, seconds, and nanoseconds.

clock-date=yes [optional boolean]

Print event times and dates.

clock-gmt=yes [optional boolean]

Print event times in the GMT time zone instead of the local time zone.

clock-seconds=yes [optional boolean]

Print event times in seconds instead of hours, minutes, seconds, and nanoseconds.

color=(never | auto | always) [optional string]

Force the terminal color support, one of:

auto (default)

Only emit terminal color codes when the standard output and error streams are connected to a color-capable terminal.

never

Never emit terminal color codes.

always

Always emit terminal color codes.

The BABELTRACE_TERM_COLOR environment variable overrides this parameter.

field-default=(show | hide) [optional string]

By default, show or hide all the fields. This sets the default value of all the parameters which start with field-.

field-emf=(yes | no) [optional boolean]

Show or hide the event’s Eclipse Modeling Framework URI field.

field-loglevel=(yes | no) [optional boolean]

Show or hide the event’s logging level field.

field-trace=(yes | no) [optional boolean]

Show or hide the trace name field.

field-trace:domain=(yes | no) [optional boolean]

Show or hide the tracing domain field.

field-trace:hostname=(yes | no) [optional boolean]

Show or hide the hostname field.

field-trace:procname=(yes | no) [optional boolean]

Show or hide the process name field.

field-trace:vpid=(yes | no) [optional boolean]

Show or hide the virtual process ID field.

name-context=(yes | no) [optional boolean]

Show or hide the field names in the context scopes.

name-default=(show | hide) [optional string]

By default, show or hide all the names. This sets the default value of all the parameters which start with name-.

name-header=(yes | no) [optional boolean]

Show or hide the field names in the header scopes.

name-payload=(yes | no) [optional boolean]

Show or hide the field names in the event payload scopes.

name-scope=(yes | no) [optional boolean]

Show or hide the scope names.

no-delta=yes [optional boolean]

Do not print the time delta between consecutive lines.

path=PATH [optional string]

Print the text output to the file PATH instead of the standard output.

verbose=yes [optional boolean]

Turn the verbose mode on.

PORTS

+------------------+
| sink.text.pretty |
|                  |
@ in               |
+------------------+

Input

in

Single input port.

ENVIRONMENT VARIABLES

BABELTRACE_TERM_COLOR=(AUTO | NEVER | ALWAYS)

Force the terminal color support for the babeltrace2(1) program and the project’s plugins.

The available values are:

AUTO

Only emit terminal color codes when the standard output and error streams are connected to a color-capable terminal.

NEVER

Never emit terminal color codes.

ALWAYS

Always emit terminal color codes.

SEE ALSO

babeltrace2-intro(7), babeltrace2-plugin-text(7)