Logging via file instead of IO