How to set SQLLogger for Doctrine?

The SQLLogger interface is already deprecated, how to set a SqlLogger for EntityManager configs?