setLogger

Set the logger to forward to.

Pass in null to disable logging.