Normalizes the user-supplied Logger option into a single callback. When no logger is provided, a no-op callback is returned so call sites do not need to null-check.
Optional
The user-supplied logger option.
A callback that dispatches to the configured logger.
Normalizes the user-supplied Logger option into a single callback. When no logger is provided, a no-op callback is returned so call sites do not need to null-check.