Made detached logging optional (OMS-182)