retain logger method