Module logger

Module logger 

Source
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§

BnLogLevel
! Console log levels

Constants§

LOGGER_DEFAULT_SESSION_ID

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 LogListener that will receive log messages from the core.