[−][src]Function dqcsim::plugin::log::setup_logging
pub fn setup_logging(
configuration: &PluginLogConfiguration,
log_channel: IpcSender<LogRecord>
) -> Result<()>
Setup logging for a Plugin instance.
Given a [PluginConfiguration
], start the configured loggers. Consumes
the given log channel sender.
Starts a thread-local ['LogProxy], given a [
LoglevelFilter] bigger than [
Off] which forwards log records to the simulator [
LogThread]. Starts [
TeeFile] loggers, given a non-empty vector of [
TeeFile`], to
forward log records to output files.