pub struct RawDumpCommand {Show 29 fields
pub tail: Option<usize>,
pub filter: Vec<String>,
pub moniker: Vec<String>,
pub component: Vec<String>,
pub exclude: Vec<String>,
pub exclude_regex: Vec<String>,
pub exclude_regex_file: Option<String>,
pub tag: Vec<String>,
pub exclude_tags: Vec<String>,
pub severity: Option<Severity>,
pub kernel: bool,
pub since: Option<DetailedDateTime>,
pub since_boot: Option<Duration>,
pub until: Option<DetailedDateTime>,
pub until_boot: Option<Duration>,
pub hide_tags: bool,
pub hide_file: bool,
pub no_color: bool,
pub case_sensitive: bool,
pub show_metadata: bool,
pub show_full_moniker: bool,
pub prefer_url_component_name: bool,
pub hide_moniker: bool,
pub clock: Option<TimeFormat>,
pub pid: Option<u64>,
pub tid: Option<u64>,
pub force_set_severity: bool,
pub encoding: Option<LogEncoding>,
pub json: bool,
}Expand description
Dumps all logs from a given target’s session.
Fields§
§tail: Option<usize>return only the last N log lines.
filter: Vec<String>filter for a string in either the message, component or url. May be repeated.
moniker: Vec<String>DEPRECATED: use –component
component: Vec<String>fuzzy search for a component by moniker or url. May be repeated.
exclude: Vec<String>exclude a string in either the message, component or url. May be repeated.
exclude_regex: Vec<String>exclude logs matching a regular expression. May be repeated.
exclude_regex_file: Option<String>path to a file containing regular expressions, one per line, to exclude.
tag: Vec<String>filter for only logs with a given tag. May be repeated.
exclude logs with a given tag. May be repeated.
severity: Option<Severity>set the minimum severity. Accepted values (from lower to higher) are: trace, debug, info, warn (or warning), error, fatal. This field is case insensitive.
kernel: booloutputs only kernel logs, unless combined with –component.
since: Option<DetailedDateTime>show only logs after a certain time (exclusive)
since_boot: Option<Duration>show only logs after a certain time (as a boot timestamp: seconds from the target’s boot time).
until: Option<DetailedDateTime>show only logs until a certain time (exclusive)
until_boot: Option<Duration>show only logs until a certain time (as a boot timestamp: seconds since the target’s boot time).
hide the tag field from output (does not exclude any log messages)
hide_file: boolhide the file and line number field from output (does not exclude any log messages)
no_color: booldisable coloring logs according to severity.
Note that you can permanently disable this with
ffx config set log_cmd.color false
case_sensitive: boolif enabled, text filtering options are case-sensitive this applies to –filter, –exclude, –tag, and –exclude-tags.
show_metadata: boolshows process-id and thread-id in log output
show_full_moniker: boolshows the full moniker in log output. By default this is false and only the last segment of the moniker is printed.
prefer_url_component_name: boolif enabled, prefer using the component URL for the component name over the moniker.
hide_moniker: boolhide the moniker field from output (does not exclude any log messages)
clock: Option<TimeFormat>how to display log timestamps. Options are “utc”, “local”, or “boot” (i.e. nanos since target boot). Default is boot.
pid: Option<u64>filters by pid
tid: Option<u64>filters by tid
force_set_severity: boolif enabled, selectors will be passed directly to Archivist without any filtering. If disabled and no matching components are found, the user will be prompted to either enable this or be given a list of selectors to choose from. This applies to both –set-severity and the set-severity subcommand.
encoding: Option<LogEncoding>EXPERIMENTAL/SUBJECT TO REMOVAL: select the encoding used to retrieve logs from the archivist. Options are “json” or “fxt”. Default is “json”.
json: boolenables structured JSON logs.
Implementations§
Source§impl RawDumpCommand
impl RawDumpCommand
pub fn into_filter_args(self) -> LogFilterArgs
Trait Implementations§
Source§impl ArgsInfo for RawDumpCommand
impl ArgsInfo for RawDumpCommand
Source§fn get_args_info() -> CommandInfoWithArgs
fn get_args_info() -> CommandInfoWithArgs
Source§fn get_subcommands() -> Vec<SubCommandInfo<'static>>
fn get_subcommands() -> Vec<SubCommandInfo<'static>>
Source§impl Clone for RawDumpCommand
impl Clone for RawDumpCommand
Source§fn clone(&self) -> RawDumpCommand
fn clone(&self) -> RawDumpCommand
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RawDumpCommand
impl Debug for RawDumpCommand
Source§impl Default for RawDumpCommand
impl Default for RawDumpCommand
Source§impl FromArgs for RawDumpCommand
impl FromArgs for RawDumpCommand
Source§fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
Source§fn redact_arg_values(
__cmd_name: &[&str],
__args: &[&str],
) -> Result<Vec<String>, EarlyExit>
fn redact_arg_values( __cmd_name: &[&str], __args: &[&str], ) -> Result<Vec<String>, EarlyExit>
Source§impl PartialEq for RawDumpCommand
impl PartialEq for RawDumpCommand
Source§fn eq(&self, other: &RawDumpCommand) -> bool
fn eq(&self, other: &RawDumpCommand) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RawDumpCommand
Source§impl SubCommand for RawDumpCommand
impl SubCommand for RawDumpCommand
Source§const COMMAND: &'static CommandInfo
const COMMAND: &'static CommandInfo
Auto Trait Implementations§
impl Freeze for RawDumpCommand
impl RefUnwindSafe for RawDumpCommand
impl Send for RawDumpCommand
impl Sync for RawDumpCommand
impl Unpin for RawDumpCommand
impl UnsafeUnpin for RawDumpCommand
impl UnwindSafe for RawDumpCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more