reconfigure method

Future<void> reconfigure({
  1. List<LogStrategy>? strategies,
  2. LogLevel level = LogLevel.none,
})

Reconfigures the logger even if it has been previously initialized.

This should be used with caution, as reconfiguring a logger that is already in use can lead to inconsistent logging behavior.

strategies - List of new strategies to use for logging. level - The minimum log level to log. Defaults to LogLevel.none.

Implementation

Future<void> reconfigure({
  List<LogStrategy>? strategies,
  LogLevel level = LogLevel.none,
}) async {
  logger._initialize(strategies: strategies, level: level, force: true);
}