Fix logger method