exposes `log_active` as a boolean reference

This is helpful when playing from a toplevel: in case of failure, I
would like to be able to activate logging without breaking out of the
toplevel.