Log

Подключение

'components' => [ 'log' => [ 'traceLevel' => YII_DEBUG ? 3 : 0, 'targets' => [ [ 'class' => 'yii\log\FileTarget', 'levels' => ['error', 'warning'], ], ], ], ],

Хранение лога

yii\log\FileTarget

yii\log\DbTarget

yii\log\EmailTarget

yii\log\SyslogTarget