Rewhacked logging configuration. Also comments.