pub struct LoggingArgs {
pub log_file: Option<PathBuf>,
pub log_level: String,
}Expand description
Shared logging/tracing arguments available to all commands.
Language crates and command structs flatten this to get consistent
--log-file and --log-level flags.
Fields§
§log_file: Option<PathBuf>Path to a log file for debug/trace output. When set, all tracing events at the configured level are written here.
log_level: StringLog level filter (trace, debug, info, warn, error). Controls file output verbosity. Stderr progress display is always shown.
Trait Implementations§
Source§impl Args for LoggingArgs
impl Args for LoggingArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for LoggingArgs
impl Clone for LoggingArgs
Source§fn clone(&self) -> LoggingArgs
fn clone(&self) -> LoggingArgs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LoggingArgs
impl Debug for LoggingArgs
Source§impl FromArgMatches for LoggingArgs
impl FromArgMatches for LoggingArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for LoggingArgs
impl RefUnwindSafe for LoggingArgs
impl Send for LoggingArgs
impl Sync for LoggingArgs
impl Unpin for LoggingArgs
impl UnsafeUnpin for LoggingArgs
impl UnwindSafe for LoggingArgs
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
Mutably borrows from an owned value. Read more