|
| | __init__ (self, args=None, **kwargs) |
| |
| | emit (self, topic, msg, stamp=None, match=None, index=None) |
| |
| | emit_meta (self) |
| |
| | is_highlighting (self) |
| |
| | validate (self) |
| |
| | __enter__ (self) |
| |
| | __exit__ (self, exc_type, exc_value, traceback) |
| |
| | autodetect (cls, target) |
| |
| | bind (self, source) |
| |
| | close (self) |
| |
| | configure (self, args=None, **kwargs) |
| |
| | flush (self) |
| |
| | thread_excepthook (self, text, exc) |
| |
| | format_message (self, msg, highlight=False) |
| |
| | message_to_yaml (self, val, top=(), typename=None) |
| |
Prints messages to console.
Definition at line 534 of file outputs.py.
◆ __init__()
| __init__ |
( |
|
self, |
|
|
|
args = None, |
|
|
** |
kwargs |
|
) |
| |
@param args arguments as namespace or dictionary, case-insensitive
@param args.color False or "never" for not using colors in replacements
@param args.highlight highlight matched values (default true)
@param args.meta whether to print metainfo
@param args.emit_field message fields to emit if not all
@param args.noemit_field message fields to skip in output
@param args.line_prefix print source prefix like bag filename on each message line
@param args.max_field_lines maximum number of lines to print per field
@param args.start_line message line number to start output from
@param args.end_line message line number to stop output at
@param args.max_message_lines maximum number of lines to output per message
@param args.lines_around_match number of message lines around matched fields to output
@param args.matched_fields_only output only the fields where match was found
@param args.wrap_width character width to wrap message YAML output at
@param args.match_wrapper string to wrap around matched values,
both sides if one value, start and end if more than one,
or no wrapping if zero values
@param kwargs any and all arguments as keyword overrides, case-insensitive
Reimplemented from Sink.
Definition at line 551 of file outputs.py.
◆ emit()
| emit |
( |
|
self, |
|
|
|
topic, |
|
|
|
msg, |
|
|
|
stamp = None, |
|
|
|
match = None, |
|
|
|
index = None |
|
) |
| |
Prints separator line and message text.
Reimplemented from Sink.
Definition at line 589 of file outputs.py.
◆ emit_meta()
Prints source metainfo like bag header, if not already printed.
Reimplemented from Sink.
Definition at line 577 of file outputs.py.
◆ is_highlighting()
Returns True if sink is configured to highlight matched values.
Reimplemented from Sink.
Definition at line 611 of file outputs.py.
◆ validate()
Returns whether arguments environment set, populates options, emits error if not.
Reimplemented from Sink.
Definition at line 616 of file outputs.py.
◆ CONTEXT_PREFIX_SEP
| str CONTEXT_PREFIX_SEP = "-" |
|
static |
◆ DEFAULT_ARGS
Initial value:= dict(COLOR=True, EMIT_FIELD=(), NOEMIT_FIELD=(), HIGHLIGHT=True, META=False,
LINE_PREFIX=True, MAX_FIELD_LINES=None, START_LINE=None,
END_LINE=None, MAX_MESSAGE_LINES=None, LINES_AROUND_MATCH=None,
MATCHED_FIELDS_ONLY=False, WRAP_WIDTH=None, MATCH_WRAPPER=None)
Constructor argument defaults.
Definition at line 545 of file outputs.py.
◆ MATCH_PREFIX_SEP
| str MATCH_PREFIX_SEP = ":" |
|
static |
◆ MESSAGE_SEP_TEMPLATE
| str MESSAGE_SEP_TEMPLATE = "{ll0}{sep}{ll1}" |
|
static |
◆ META_LINE_TEMPLATE
| str META_LINE_TEMPLATE = "{ll0}{sep} {line}{ll1}" |
|
static |
◆ PREFIX_TEMPLATE
| str PREFIX_TEMPLATE = "{pfx0}{batch}{pfx1}{sep0}{sep}{sep1}" |
|
static |
◆ SEP
◆ valid
The documentation for this class was generated from the following file: