Crate re_log

source ·
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 things
  • debug: things that might be useful when debugging
  • info: things that we want to show to users
  • warn: problems that we can recover from
  • error: 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

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.
  • 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

Enums

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

Functions