setup_logger_with_level

Function setup_logger_with_level 

Source
pub fn setup_logger_with_level(log_level: &str)
Expand description

Sets up a logger with a user-specified log level for platforms

Parameters:

  • log_level: The desired log level as a string. Supported levels are the same as for setup_logger.

Behavior:

  • Concurrent calls to this function result in the logger being initialized only once.

ยงPanics

This function panics if setting the default subscriber fails.