#[repr(u8)]pub enum LogLevel {
Debug = 1,
Info = 2,
Warn = 3,
Error = 4,
Critical = 5,
Fatal = 7,
}
Expand description
Pigweed’s standard log levels
Values are limited to 3 bits, to fit within the protobuf definition of
LogEntry’s line_level in pw_log_rpc. These levels correspond with the log
levels from Python’s logging library, but have different values. The
values match the C/C++ implementation of the pw_log
module.
TODO: <pwbug.dev/314168783> - Add documentation on the meaning of the log levels once it is written for Pigweed in general.
Variants§
Auto Trait Implementations§
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