Expand description
Text logging (nothing to do with rerun logging) for use in rerun libraries.
Provides helpers for adding multiple loggers, and for setting up logging on native and on web.
trace
: spammy thingsdebug
: things that might be useful when debugginginfo
: things that we want to show to userswarn
: problems that we can recover fromerror
: problems that lead to loss of functionality or data
The warn_once
etc macros are for when you want to suppress repeated
logging of the exact same message.
Modules§
- Capture log messages and send them to some receiver over a channel.
- Re-exports of other crates.
- Have multiple loggers implementing
log::Log
at once. - setup 🔒Function to setup logging in binaries and web apps.
Macros§
- Constructs an event at the debug level.
- Logs a message once at the debug level.
- Constructs an event at the error level.
- Logs a message once at the error level.
- Constructs an event at the info level.
- Logs a message once at the info level.
- Standard logging macro, logging events once for each arguments.
- Constructs an event at the trace level.
- Logs a message once at the trace level.
- Constructs an event at the warn level.
- Logs a message once at the warn level.
Structs§
- Pipe log messages to a channel.
- Produced when trying to install additional loggers when
crate::setup_logging
has not been called.
Enums§
- An enum representing the available verbosity levels of the logger.
- An enum representing the available verbosity level filters of the logger.
Constants§
- Never log anything less serious than a
ERROR
from these crates. - Never log anything less serious than a
INFO
from these crates. - Never log anything less serious than a
WARN
from these crates.
Traits§
Functions§
- Install an additional global logger.
- Install an additional global logger.
- Get
RUST_LOG
environment variable orinfo
, if not set. - Should we log this message given the filter?
- Automatically does the right thing depending on target environment (native vs. web).
- Shorten a path to a Rust source file.