Module log

Module log 

Source
Expand description

Logging for WebAsssembly application

This module is mostly re-export of the log crate. The most important exception is that logging is expected to be controlled from host. So logger and max-level changes are allowed via this API.

Macros§

debug
Logs a message at the debug level.
error
Logs a message at the error level.
info
Logs a message at the info level.
log
The standard logging macro.
log_enabled
Determines if a message logged at the specified level in that module will be logged.
trace
Logs a message at the trace level.
warn
Logs a message at the warn level.

Structs§

Metadata
Metadata about a log message.
MetadataBuilder
Builder for Metadata.
Record
The “payload” of a log message.
RecordBuilder
Builder for Record.

Enums§

Level
An enum representing the available verbosity levels of the logger.
LevelFilter
An enum representing the available verbosity level filters of the logger.

Constants§

STATIC_MAX_LEVEL
The statically resolved maximum log level.

Functions§

logger
Returns a reference to the logger.
max_level
Returns the current maximum log level.