Made detached logging optional (OMS-181)