Reformatting. Added javadoc and a test proving that two logging enablement calls will result in only the latest taking effect