Revert "Reverting logfile stuff. It's better to use a logging router like fluent or logxplex"

This reverts commit 616c972a96b113b3098bb33f1e36a921d3f9f333.