proc_macro_logger_default_setup

Function proc_macro_logger_default_setup 

Source
pub fn proc_macro_logger_default_setup()
Expand description

Sets up a default logging arrangement for the proc_macro. This function should be called once in every top level function of your proc_macro crate. To use a custom logging setup take a look at the source code of this function.

When writing your own setup function, make sure to use a static SETUP_LOGGER: Once = Once::new(); to ensure that the setup is only done once.