enable logging if log_dir is configured
Merge pull request #39 from hayes/log-defaults

Enable logging if log_dir is configured