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) -> Result<PathBuf>
pub fn debug_log_path(&self) -> Result<PathBuf>
Get the debug log directory, expanding ~ to home directory.
Trait Implementations§
Source§impl Clone for DebugConfig
impl Clone for DebugConfig
Source§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_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 inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Forget for DebugConfig
impl Freeze for DebugConfig
impl Move for DebugConfig
impl RefUnwindSafe for DebugConfig
impl Send for DebugConfigwhere
RawVecInner: Send,
impl Sync for DebugConfigwhere
RawVecInner: Sync,
impl Unpin for DebugConfig
impl UnsafeUnpin for DebugConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for DebugConfigwhere
RawVecInner: UnwindSafe,
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