when we can, we do such things in the DependencyInjection class (e.g. with the cmf) but i think in this case we can't know if the logger will be present or not.

i suggest we leave as is and hopefully eventually can simplify.