add log methods to class as well as instance