pub enum LogLevel {
Debug,
Info,
Warn,
}Expand description
Log level for the logger middleware.
Determines the verbosity of logging output. Higher levels produce less output.
§Examples
use wsforge::prelude::*;
// Debug - logs everything with maximum detail
let debug = LogLevel::Debug;
// Info - logs standard information
let info = LogLevel::Info;
// Warn - only logs warnings and errors
let warn = LogLevel::Warn;Variants§
Debug
Debug level logging - most verbose.
Logs all messages with detailed information including message content, processing times, and full error details.
Use for: Development, debugging, troubleshooting
Info
Info level logging - standard verbosity.
Logs message metadata, processing times, and success/failure status. This is the recommended level for production.
Use for: Production, monitoring, standard operations
Warn
Warn level logging - minimal verbosity.
Only logs warnings and errors. Normal message processing is not logged.
Use for: Production with minimal logging overhead
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogLevel
impl RefUnwindSafe for LogLevel
impl Send for LogLevel
impl Sync for LogLevel
impl Unpin 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