Logging can now be turned on/off form the command line