resetLoggerForTesting static method

void resetLoggerForTesting()

Resets the logger, verbose flag, and redaction state to their initial values.

Clears the registered JsonLogFn, resets verbose to false, and clears any redactKeys and redactionPlaceholder settings applied by a prior configure or silence call. For use in tests only — call in tearDown to allow re-configuration across test cases.

Implementation

static void resetLoggerForTesting() {
  _logger = null;
  _verbose = false;
  _redactKeys = null;
  _redactionPlaceholder = '[REDACTED]';
}