pull/2576/head
3lpsy 4 months ago
parent 78b6af8c49
commit f9e7a1ba59
No known key found for this signature in database
GPG Key ID: 730A958DD524FAAA

@ -380,7 +380,7 @@ impl Builder {
/// Skip the creation and global registration of a logger /// Skip the creation and global registration of a logger
/// ///
/// If you wish to use your own global logger, you must call `skip_logger` so that the plugin does not attempt to set a second global logger. In this configuration, no logger will be created and the plugin's `log` command will rely on the result of `log::logger()`. You will be responsible for configuring the logger yourself and any included targets will be ignored. If ever initializing the plugin multiple times, such as if registering the plugin while testing, call this method to panicking when registering multiple loggers. For interacting with `tracing`, you can leverage the `tracing-log` logger to forward logs to `tracing` or enable the `tracing` for this plugin to emit events directly to the tracing system. Both scenarios require calling this method. /// If you wish to use your own global logger, you must call `skip_logger` so that the plugin does not attempt to set a second global logger. In this configuration, no logger will be created and the plugin's `log` command will rely on the result of `log::logger()`. You will be responsible for configuring the logger yourself and any included targets will be ignored. If ever initializing the plugin multiple times, such as if registering the plugin while testing, call this method to avoid panicking when registering multiple loggers. For interacting with `tracing`, you can leverage the `tracing-log` logger to forward logs to `tracing` or enable the `tracing` feature for this plugin to emit events directly to the tracing system. Both scenarios require calling this method.
/// ```rust /// ```rust
/// static LOGGER: SimpleLogger = SimpleLogger; /// static LOGGER: SimpleLogger = SimpleLogger;
/// ///

Loading…
Cancel
Save