Changed logger creation