method logger