pub struct ConsoleLogger {}
Expand description
ConsoleLogger sends output to the javascript console (wasm32 targets) or stdout (println! for
non-wasm32 targets)
Logger that sends all messages (on wasm32 targets) to
console.log.
On Cloudflare workers, console.log output is
available in the terminal for wrangler dev
and wrangler preview
modes.
To simplify debugging and testing, ConsoleLogger on non-wasm32 targets is implemented
to send output to stdout using println!
Implementations§
Trait Implementations§
Source§impl Debug for ConsoleLogger
impl Debug for ConsoleLogger
Source§impl Default for ConsoleLogger
impl Default for ConsoleLogger
Source§fn default() -> ConsoleLogger
fn default() -> ConsoleLogger
Returns the “default value” for a type. Read more
Source§impl Logger for ConsoleLogger
ConsoleLogger on non-wasm32 builds outputs with println!, to support debugging and testing
impl Logger for ConsoleLogger
ConsoleLogger on non-wasm32 builds outputs with println!, to support debugging and testing
Auto Trait Implementations§
impl Freeze for ConsoleLogger
impl RefUnwindSafe for ConsoleLogger
impl Send for ConsoleLogger
impl Sync for ConsoleLogger
impl Unpin for ConsoleLogger
impl UnwindSafe for ConsoleLogger
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