Yii::warning('Your account will be locked if you enter the wrong password too many times', 'app\user');
Yii::warning('The server responded with error code 500', 'app\api');This code will log a warning message to the application log with a specified category of `app\api`. Package Library: The "warning" library is part of the core Yii framework and is included in the base installation. No additional package or library is required to use this functionality.