pub enum LogLevel {
Error,
Warn,
Info,
Debug,
Trace,
}Expand description
Logging verbosity level
Controls the verbosity of Claude Code logging output.
§Environment Variable
Maps to CLAUDE_CODE_LOG_LEVEL environment variable.
§Examples
use claude_runner_core::LogLevel;
let level = LogLevel::Info; // Default: standard information
let level = LogLevel::Debug; // Verbose debugging output
let level = LogLevel::Error; // Only errorsVariants§
Error
Only critical errors
Warn
Warnings and errors
Info
Standard information (default)
Debug
Detailed debugging information
Trace
All possible logging output
Implementations§
Source§impl LogLevel
impl LogLevel
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
Convert to environment variable string value
§Examples
use claude_runner_core::LogLevel;
assert_eq!( LogLevel::Error.as_str(), "error" );
assert_eq!( LogLevel::Warn.as_str(), "warn" );
assert_eq!( LogLevel::Info.as_str(), "info" );
assert_eq!( LogLevel::Debug.as_str(), "debug" );
assert_eq!( LogLevel::Trace.as_str(), "trace" );Trait Implementations§
Source§impl Ord for LogLevel
impl Ord for LogLevel
Source§impl PartialOrd for LogLevel
impl PartialOrd for LogLevel
impl Copy for LogLevel
impl Eq for LogLevel
impl StructuralPartialEq for LogLevel
Auto Trait Implementations§
impl Freeze for LogLevel
impl RefUnwindSafe for LogLevel
impl Send for LogLevel
impl Sync for LogLevel
impl Unpin for LogLevel
impl UnsafeUnpin for LogLevel
impl UnwindSafe for LogLevel
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