pub struct LoggerPlugin;Expand description
The plugin that writes the log of the server.
Implementations§
Source§impl LoggerPlugin
Inherent implementation of LoggerPlugin.
impl LoggerPlugin
Inherent implementation of LoggerPlugin.
Sourcepub fn sanitize_log_text(input: &str) -> String
pub fn sanitize_log_text(input: &str) -> String
Sourcepub fn get() -> Option<&'static LoggerConfig>
pub fn get() -> Option<&'static LoggerConfig>
The configuration the logger works from.
§Returns
Option<&'static LoggerConfig>- The configuration, when it was set.
Sourcepub fn dropped_count() -> u64
pub fn dropped_count() -> u64
Returns the total number of log records dropped due to background writer backpressure.
§Returns
u64- Cumulative dropped record count.
Trait Implementations§
Source§impl Clone for LoggerPlugin
impl Clone for LoggerPlugin
impl Copy for LoggerPlugin
Source§impl Debug for LoggerPlugin
impl Debug for LoggerPlugin
Source§impl Default for LoggerPlugin
impl Default for LoggerPlugin
Auto Trait Implementations§
impl Forget for LoggerPlugin
impl Freeze for LoggerPlugin
impl Move for LoggerPlugin
impl RefUnwindSafe for LoggerPlugin
impl Send for LoggerPlugin
impl Sync for LoggerPlugin
impl Unpin for LoggerPlugin
impl UnsafeUnpin for LoggerPlugin
impl UnwindSafe for LoggerPlugin
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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