Extensibility of framework classes in Yii 3

Hi,
I am wondering what’s recommended practice on extending framework core classes.
In Yii.2 one could extend any core class by defining the “class” attribute e.g. in config.
How does this work in Yii.3 ?
For example if I want to add additional column into DB logger ?
Thank you.