Do not process compiler pass if annotations are not enabled

* Move logger definition to a standalone service file