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§
- external
- Re-exports of other crates.
Macros§
- debug
- Constructs an event at the debug level.
- debug_
once - Logs a message once at the debug level.
- error
- Constructs an event at the error level.
- error_
once - Logs a message once at the error level.
- info
- Constructs an event at the info level.
- info_
once - Logs a message once at the info level.
- log_
once - Standard logging macro, logging events once for each arguments.
- trace
- Constructs an event at the trace level.
- trace_
once - Logs a message once at the trace level.
- warn
- Constructs an event at the warn level.
- warn_
once - Logs a message once at the warn level.
Structs§
- Channel
Logger - Pipe log messages to a channel.
- LogMsg
- Multi
Logger NotSetup Error - Produced when trying to install additional loggers when
crate::setup_logging
has not been called. - Panic
OnWarn Scope - Scope for enabling panic on warn/error log messages temporariliy on the current thread (!).
Enums§
- Level
- An enum representing the available verbosity levels of the logger.
- Level
Filter - An enum representing the available verbosity level filters of the logger.
Traits§
Functions§
- add_
boxed_ logger - Install an additional global logger.
- add_
logger - Install an additional global logger.
- default_
log_ filter - Determines the default log filter.
- log_
filter_ from_ env_ or_ default - Determines the log filter from the
RUST_LOG
environment variable or an explicit default. - setup_
logging - Sets up logging for the current process using default log filter as defined in
crate::default_log_filter
. - setup_
logging_ with_ filter - Sets up logging for the current process using an explicit log filter.