pub struct DebugConfig {
pub enable_tracing: bool,
pub trace_level: TraceLevel,
pub trace_targets: Vec<String>,
pub debug_log_dir: Option<String>,
pub max_debug_log_size_mb: u64,
pub max_debug_log_age_days: u32,
}Expand description
Debug and tracing configuration
Fields§
§enable_tracing: boolEnable structured logging for development and troubleshooting
trace_level: TraceLevelTrace level (error, warn, info, debug, trace)
trace_targets: Vec<String>List of tracing targets to enable Examples: “vtcode_core::agent”, “vtcode_core::tools”, “vtcode::*”
debug_log_dir: Option<String>Directory for debug logs
max_debug_log_size_mb: u64Maximum size of debug logs before rotating (in MB)
max_debug_log_age_days: u32Maximum age of debug logs to keep (in days)
Implementations§
Source§impl DebugConfig
impl DebugConfig
Sourcepub fn debug_log_path(&self) -> PathBuf
pub fn debug_log_path(&self) -> PathBuf
Get the debug log directory, expanding ~ to home directory
Trait Implementations§
Source§impl Clone for DebugConfig
impl Clone for DebugConfig
Source§fn clone(&self) -> DebugConfig
fn clone(&self) -> DebugConfig
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 DebugConfig
impl Debug for DebugConfig
Source§impl Default for DebugConfig
impl Default for DebugConfig
Source§impl<'de> Deserialize<'de> for DebugConfig
impl<'de> Deserialize<'de> for DebugConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for DebugConfig
impl JsonSchema for DebugConfig
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for DebugConfig
impl RefUnwindSafe for DebugConfig
impl Send for DebugConfig
impl Sync for DebugConfig
impl Unpin for DebugConfig
impl UnwindSafe for DebugConfig
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