Extends a class for singleton style logging that can easily be turned on and off.