Log warnings to a Logger instance.

Rather than stdout.