pub struct LightningLogger { /* private fields */ }
Expand description
The main lightning logger
Implementations§
Source§impl LightningLogger
impl LightningLogger
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Create a new lightning logger with specified channel capacity
Sourcepub fn with_config(config: LoggerConfig) -> Self
pub fn with_config(config: LoggerConfig) -> Self
Create a new lightning logger with custom configuration
Sourcepub fn wait_for_shutdown(self)
pub fn wait_for_shutdown(self)
Wait for the logging thread to complete
Auto Trait Implementations§
impl Freeze for LightningLogger
impl !RefUnwindSafe for LightningLogger
impl Send for LightningLogger
impl Sync for LightningLogger
impl Unpin for LightningLogger
impl !UnwindSafe for LightningLogger
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