You might want to include `Cake\Log\LogTrait` in the classes that used to extend Object. At least in classes like Controller, Shell, and View.