Update logging to fix file not being created on first-run