Logging updates

Disabled logging by default and added a configurable variable to turn it
off and on