Skip to main content

Module log

Module log 

Source
Expand description

Rift’s log stream, prefixed with the plugin name by the host.

The SDK installs a ::log logger before Plugin::init (and before Plugin::work_init on a worker), so the log crate’s macros work as usual. They are re-exported here for plugins that do not depend on log themselves: rift_plugin::log::info!("ready").

Re-exports§

pub use crate::bindings::rift::plugin::log::log;
pub use ::log::debug;
pub use ::log::error;
pub use ::log::info;
pub use ::log::trace;
pub use ::log::warn;