Make log level controllable at runtime. Logging now defaults to off.