Currently all the logs are only sent to stdout. It would be better to have a (configurable) log file to store all the logs in.