How to log in yii2

Hi, how to add logs in yii2 web app. Is there any article to explain the yii2 web app debugging. Thanks in advance.

It’s good idea to check framework documentation first before you start using it.

http://www.yiiframework.com/doc-2.0/guide-runtime-logging.html