write debug logs to file instead of stderr