Changed logger method.