Added Command.generateLogger() method. Fixed: make command logger be used for errors, not just when running the command.