pub struct LogOptions {
pub disabled: bool,
pub demote_info_to_debug: bool,
}Expand description
Options to configure how llama.cpp logs are intercepted.
Fields§
§disabled: bool§demote_info_to_debug: boolImplementations§
Source§impl LogOptions
impl LogOptions
Sourcepub const fn with_logs_enabled(self, enabled: bool) -> Self
pub const fn with_logs_enabled(self, enabled: bool) -> Self
If enabled, logs are sent to tracing. If disabled, all logs are suppressed. Default is for logs to be sent to tracing.
Sourcepub const fn with_demote_info_to_debug(self, demote: bool) -> Self
pub const fn with_demote_info_to_debug(self, demote: bool) -> Self
When enabled, llama.cpp and ggml INFO logs are demoted to DEBUG tracing level. WARN and
ERROR logs retain their original severity. This suppresses verbose informational output
under a typical INFO-level subscriber while keeping important diagnostics visible.
All demoted logs remain available via RUST_LOG=debug.
Trait Implementations§
Source§impl Clone for LogOptions
impl Clone for LogOptions
Source§fn clone(&self) -> LogOptions
fn clone(&self) -> LogOptions
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 LogOptions
impl Debug for LogOptions
Source§impl Default for LogOptions
impl Default for LogOptions
Source§fn default() -> LogOptions
fn default() -> LogOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LogOptions
impl RefUnwindSafe for LogOptions
impl Send for LogOptions
impl Sync for LogOptions
impl Unpin for LogOptions
impl UnsafeUnpin for LogOptions
impl UnwindSafe for LogOptions
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