pub struct LogCommand {
pub sub_command: Option<LogSubCommand>,
pub dump: bool,
pub set_severity: Vec<OneOrMany<LogInterestSelector>>,
pub filters: LogFilterArgs,
}Expand description
Consolidated log command representation containing merged filter criteria and subcommands.
Fields§
§sub_command: Option<LogSubCommand>§dump: bool§set_severity: Vec<OneOrMany<LogInterestSelector>>§filters: LogFilterArgsImplementations§
Source§impl LogCommand
impl LogCommand
Sourcepub fn merge_subcommand(&mut self)
pub fn merge_subcommand(&mut self)
Merges subcommand filter overrides (e.g. dump or watch) into self.filters.
Source§impl LogCommand
impl LogCommand
Sourcepub fn clock(&self) -> TimeFormat
pub fn clock(&self) -> TimeFormat
Returns the timestamp display format.
Sourcepub fn encoding(&self) -> LogEncoding
pub fn encoding(&self) -> LogEncoding
Returns the log encoding format.
Sourcepub fn exclude_regex(&self) -> &[String]
pub fn exclude_regex(&self) -> &[String]
Returns the regular expression exclusion patterns.
Returns the tag exclusion patterns.
Returns whether tags are hidden from output.
Sourcepub fn set_no_color(&mut self, no_color: bool)
pub fn set_no_color(&mut self, no_color: bool)
Sets whether colored output is disabled.
Sourcepub fn show_metadata(&self) -> bool
pub fn show_metadata(&self) -> bool
Returns whether PID and TID metadata are displayed.
Sourcepub fn hide_moniker(&self) -> bool
pub fn hide_moniker(&self) -> bool
Returns whether monikers are hidden from output.
Sourcepub fn show_full_moniker(&self) -> bool
pub fn show_full_moniker(&self) -> bool
Returns whether full monikers are displayed.
Sourcepub fn prefer_url_component_name(&self) -> bool
pub fn prefer_url_component_name(&self) -> bool
Returns whether component URL is preferred over moniker for display.
Sourcepub fn since(&self) -> Option<&DetailedDateTime>
pub fn since(&self) -> Option<&DetailedDateTime>
Returns the starting timestamp filter.
Sourcepub fn until(&self) -> Option<&DetailedDateTime>
pub fn until(&self) -> Option<&DetailedDateTime>
Returns the ending timestamp filter.
Sourcepub fn since_boot(&self) -> Option<Duration>
pub fn since_boot(&self) -> Option<Duration>
Returns the starting boot duration filter.
Sourcepub fn until_boot(&self) -> Option<Duration>
pub fn until_boot(&self) -> Option<Duration>
Returns the ending boot duration filter.
Sourcepub fn exclude_regex_file(&self) -> Option<&str>
pub fn exclude_regex_file(&self) -> Option<&str>
Returns the path to the regex exclusion file, if set.
Sourcepub fn force_set_severity(&self) -> bool
pub fn force_set_severity(&self) -> bool
Returns whether severity selectors bypass ambiguity checks.
Sourcepub fn case_sensitive(&self) -> bool
pub fn case_sensitive(&self) -> bool
Returns whether text filtering is case-sensitive.
pub fn validate_cmd_flags_with_warnings( &mut self, ) -> Result<Vec<&'static str>, LogError>
Sourcepub async fn maybe_set_interest(
&self,
log_settings_client: &LogSettingsProxy,
realm_query: &impl InstanceGetter,
) -> Result<(), LogError>
pub async fn maybe_set_interest( &self, log_settings_client: &LogSettingsProxy, realm_query: &impl InstanceGetter, ) -> Result<(), LogError>
Sets interest based on configured selectors. If a single ambiguous match is found, the monikers in the selectors are automatically re-written.
Trait Implementations§
Source§impl ArgsInfo for LogCommand
impl ArgsInfo for LogCommand
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 LogCommand
impl Clone for LogCommand
Source§fn clone(&self) -> LogCommand
fn clone(&self) -> LogCommand
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 LogCommand
impl Debug for LogCommand
Source§impl Default for LogCommand
impl Default for LogCommand
Source§fn default() -> LogCommand
fn default() -> LogCommand
Source§impl FromArgs for LogCommand
impl FromArgs for LogCommand
Source§fn from_args(command_name: &[&str], args: &[&str]) -> Result<Self, EarlyExit>
fn from_args(command_name: &[&str], args: &[&str]) -> Result<Self, EarlyExit>
Source§fn redact_arg_values(
_command_name: &[&str],
_args: &[&str],
) -> Result<Vec<String>, EarlyExit>
fn redact_arg_values( _command_name: &[&str], _args: &[&str], ) -> Result<Vec<String>, EarlyExit>
Source§impl PartialEq for LogCommand
impl PartialEq for LogCommand
Source§fn eq(&self, other: &LogCommand) -> bool
fn eq(&self, other: &LogCommand) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LogCommand
Source§impl SubCommand for LogCommand
impl SubCommand for LogCommand
Source§const COMMAND: &'static CommandInfo = RawLogCommand::COMMAND
const COMMAND: &'static CommandInfo = RawLogCommand::COMMAND
impl TopLevelCommand for LogCommand
Auto Trait Implementations§
impl Freeze for LogCommand
impl RefUnwindSafe for LogCommand
impl Send for LogCommand
impl Sync for LogCommand
impl Unpin for LogCommand
impl UnsafeUnpin for LogCommand
impl UnwindSafe for LogCommand
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