Add a means to toggle the status of logging