I set up a mongod.conf file which contains the following:
# where to write logging data. systemLog: destination: file logAppend: true path: /var/log/mon