pub enum TargetId {
Console(Output),
File(PathBuf),
Custom(String),
}Expand description
Represents the id of the target where the log message is written. This can be a console output, file path, or a custom string identifier. Useful for identifying the target in hooks / filters.
Variants§
Console(Output)
Console output target
File(PathBuf)
File output target
Custom(String)
Custom target identifier This can be used for custom targets that don’t fit into the predefined categories.
Trait Implementations§
impl Eq for TargetId
impl StructuralPartialEq for TargetId
Auto Trait Implementations§
impl Freeze for TargetId
impl RefUnwindSafe for TargetId
impl Send for TargetId
impl Sync for TargetId
impl Unpin for TargetId
impl UnwindSafe for TargetId
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