Make default log name work non-detached

Previously --detach triggered logging, but it is now independant.