Expand description
Core Logger implementation, see crate::tracing for typical plugin and headless usage.
This module defines the core logger model, which is typically not used directly and instead is used
via the crate::tracing implementations. If you require a custom LogListener or need to log
directly to the core instead of through tracing macros, that is what this module is useful for.
Structs§
- LogContext
- The context associated with a log message received from the core as part of a
LogListener. - LogGuard
- Logger
Enums§
- BnLog
Level - ! Console log levels
Constants§
Traits§
- LogListener
- The trait implemented by objects that wish to receive log messages from the core.
Functions§
- bn_log
- Send a global log message to the core.
- bn_
log_ with_ session - Send a session-scoped log message to the core.
- register_
log_ listener - Register a
LogListenerthat will receive log messages from the core.