Crate log_command

Source

Structs§

DefaultLogFormatter
Default formatter implementation
DetailedDateTime
Date/time structure containing a “now” field, set if it should be interpreted as the current time (used to call Subscribe instead of SnapshotThenSubscribe).
DumpCommand
Dumps all log from a given target’s session.
LogCommand
LogEntry
A log entry from either the host, target, or a symbolized log.
LogsDataStream
Stream of JSON logs from the target device.
SetSeverityCommand
Sets the severity, but doesn’t view any logs.
WatchCommand
Watches for and prints logs from a target. Default if no sub-command is specified.

Enums§

FormatterError
Log formatter error
JsonDeserializeError
Error type for log streamer
LogData
Type of data in a log entry
LogError
LogProcessingResult
Result returned from processing logs
LogSubCommand
OneOrMany
Something that can contain either a single value or a Vec of values
SymbolizeMode
TimeFormat

Constants§

TIMESTAMP_FORMAT

Traits§

BootTimeAccessor
InstanceGetter
Trait used to get available instances given a moniker query.
Symbolize
A trait for symbolizing log entries
WriterContainer
Object which contains a Writer that can be borrowed

Functions§

dump_logs_from_socket
Reads logs from a socket and formats them using the given formatter and symbolizer.
parse_seconds_string_as_duration
Parses a duration from a string. The input is in seconds and the output is a Rust duration.
parse_time

Type Aliases§

Timestamp