pub struct WebLogger { /* private fields */ }Expand description
Implements log::Log to log messages to console.log, console.warn, etc.
Implementations§
Source§impl WebLogger
impl WebLogger
Sourcepub fn init(filter: LevelFilter) -> Result<(), SetLoggerError>
pub fn init(filter: LevelFilter) -> Result<(), SetLoggerError>
Install a new WebLogger, piping all log events to the web console.
Sourcepub fn new(filter: LevelFilter) -> Self
pub fn new(filter: LevelFilter) -> Self
Create a new WebLogger with the given filter,
but don’t install it.
Trait Implementations§
Auto Trait Implementations§
impl Forget for WebLogger
impl Freeze for WebLogger
impl Move for WebLogger
impl RefUnwindSafe for WebLogger
impl Send for WebLogger
impl Sync for WebLogger
impl Unpin for WebLogger
impl UnsafeUnpin for WebLogger
impl UnwindSafe for WebLogger
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more