Fixed logger implementation