Add commandline option to turn on logging