Fix 'logger not found' in generated code