pub struct Configuration {
pub destination: Sender<Arc<Log>>,
pub process: String,
}
Expand description
A logging configuration
Fields§
§destination: Sender<Arc<Log>>
the destination for log messages to be delivered
process: String
the name of the process that generates the logs being sent
Implementations§
Source§impl Configuration
impl Configuration
Sourcepub fn named<S: Display>(process: S, sender: Sender<Arc<Log>>) -> Self
pub fn named<S: Display>(process: S, sender: Sender<Arc<Log>>) -> Self
Create a new configuration using the
Sourcepub fn set_global(config: Self)
pub fn set_global(config: Self)
Set the global logging configuration. If no other configuration is found, this one is used.
§Panics
Panics if another global logging configuration has already been set
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Configuration
impl !RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl !UnwindSafe for Configuration
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