doing a method logger