Fixed logger initialization