modify logger method