Lazy-init logging and config so that we do almost nothing in the usual case.