Add --quiet logging mode.

Also re-add support for --logdir.