Call logger creation function correctly