Yii::info('This is an information message', 'app\components\logger');
'log' => [ 'targets' => [ [ 'class' => 'yii\log\FileTarget', 'levels' => ['error'], 'categories' => ['app\*'], 'logFile' => '@runtime/logs/error.log', ], ], ],In this example, we configure the log targets to only include error messages from the `app\*` category. We also specify a custom log file location (`@runtime/logs/error.log`). Overall, the Yii log package library provides a powerful tool for developers looking to debug their applications and improve their code quality.