pub struct LogsArgs {
pub action: LogsAction,
pub since: Option<String>,
pub until: Option<String>,
pub level: Option<String>,
pub namespace: Option<String>,
pub actor: Option<String>,
pub action_filter: Option<String>,
pub format: String,
pub log_dir: Option<PathBuf>,
}Fields§
§action: LogsAction§since: Option<String>RFC3339 lower bound. Lines older than this are dropped from
tail / cat output.
until: Option<String>RFC3339 upper bound.
level: Option<String>Filter to lines whose tracing level field equals this.
namespace: Option<String>Filter to lines that mention this namespace (case-insensitive substring match against the line body).
actor: Option<String>Filter to lines that mention this actor / agent_id.
action_filter: Option<String>Filter to lines that mention this audit action.
format: StringOutput format: text (passthrough) or json (one filtered
line per JSON object).
log_dir: Option<PathBuf>Override the operational log directory. Highest-priority layer
in the resolution ladder (CLI > AI_MEMORY_LOG_DIR > [logging] path in config.toml > platform default). Refuses world-writable
directories — see docs/security/audit-trail.md.
Trait Implementations§
Source§impl Args for LogsArgs
impl Args for LogsArgs
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 FromArgMatches for LogsArgs
impl FromArgMatches for LogsArgs
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 LogsArgs
impl RefUnwindSafe for LogsArgs
impl Send for LogsArgs
impl Sync for LogsArgs
impl Unpin for LogsArgs
impl UnsafeUnpin for LogsArgs
impl UnwindSafe for LogsArgs
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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