Option to turn all logging on/off added