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ยง
- channel_
logger ๐Capture log messages and send them to some receiver over a channel. - Re-exports of other crates.
- multi_
logger ๐Have multiple loggers implementinglog::Log
at once. - result_
extensions ๐ - 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. - Scope for enabling panic on warn/error log messages temporariliy on the current thread (!).
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. - CRATES_
AT_ ๐INFO_ LEVEL Never log anything less serious than aINFO
from these crates. - CRATES_
AT_ ๐WARN_ LEVEL Never log anything less serious than aWARN
from these crates.
Traitsยง
Functionsยง
- Install an additional global logger.
- Adds builtin log level filters for crates that are too verbose.
- Install an additional global logger.
- Determines the default log filter.
- is_
log_ ๐enabled Should we log this message given the filter? - Determines the log filter from the
RUST_LOG
environment variable or an explicit default. - Sets up logging for the current process using default log filter as defined in
crate::default_log_filter
. - Sets up logging for the current process using an explicit log filter.
- shorten_
file_ ๐path Shorten a path to a Rust source file.