silence static method
Suppresses all validation log output.
Call once at startup as a standalone alternative to configure — never in addition to it. Useful when validate is used purely for programmatic error access via JsonValidationResult.errors and no logging is wanted.
Pass verbose: true to enable dart:developer trace logs while still
suppressing the JsonLogFn. Verbose output is independent of silencing.
redactKeys and redactionPlaceholder behave identically to the
same-named parameters on configure and are passed through unchanged.
Implementation
static void silence({
bool verbose = false,
Set<String>? redactKeys,
String redactionPlaceholder = '[REDACTED]',
}) =>
configure(
(String _, {Object? error, StackTrace? stackTrace, Map<String, Object?>? extras, bool? escalate}) {},
verbose: verbose,
redactKeys: redactKeys,
redactionPlaceholder: redactionPlaceholder,
);