setLogger

Set the logger to forward to.

Pass in None to disable logging.