Minor logger creation bug fix.