Function ethers_solc::report::init

source ·
pub fn init<T>(reporter: T)
where T: Reporter + Send + Sync + 'static,
Expand description

Install this Reporter as the global default.

§Panics

Panics if the initialization was unsuccessful, likely because a global reporter was already installed by another call to try_init.

use ethers_solc::report::BasicStdoutReporter;
let subscriber = ethers_solc::report::init(BasicStdoutReporter::default());