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_logginghas 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 - Get
RUST_LOGenvironment variable orinfo, if not set. - setup_
logging - Automatically does the right thing depending on target environment (native vs. web).