Fix development log

This PR is dependent on #839 
This conditional and the one selecting `log_file` should be fused.