pub struct Record {
pub level: LogLevel,
pub thread_id: ThreadId,
pub target: String,
pub message: String,
pub module_path: Option<&'static str>,
pub file: Option<&'static str>,
pub line: Option<u32>,
}Expand description
Represents a single log record with all relevant metadata.
A Record contains the log level, target component, message content, and
source location information (module path, file, line).
Fields§
§level: LogLevelThe severity level of the log message.
thread_id: ThreadIdThe thread ID where the log was generated.
target: StringThe target component or category for the log message.
message: StringThe actual log message content.
module_path: Option<&'static str>Optional module path where the log was generated.
file: Option<&'static str>Optional source code file where the log was generated.
line: Option<u32>Optional line number in the source code where the log was generated.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
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