setLogger

Installs a custom logger. Pass null to silence all output.