pub struct ConsoleLogger { /* fields omitted */ }
Logs messages to the Web browser's console
Error and warning messages will be logged with console.error()
and console.warn()
, respectively.
All other messages will be logged with console.log()
.
Constructs a new ConsoleLogger
The given function will be used to format the logged messages.
Constructs a ConsoleLogger
with the given maximum log level
A default log formatter will be used.
Returns the "default value" for a type. Read more
Determines if a log message with the specified metadata would be logged. Read more
Flushes any buffered records.
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static