Allow logging to be disabled (default).

Part of #6, still need to make logs nicer.