Search code examples
phploggingyiitrace

YII_TRACE_LEVEL in index.php YII?


In my index.php file ,

I know that this YII_DEBUG is use to show any error on browser screen

defined('YII_DEBUG') or define('YII_DEBUG',true);

What is mean this below line YII_TRACE_LEVEL ?

defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);

1)What is YII_TRACE_LEVEL?

2)What is 3 meaning in this?


Solution

  • Yes,you are right. The define('YII_DEBUG',true) display exception on you browser screen .

    The Log for same is also create in protected/runtime/*.log

    The YII_TRACE_LEVEL number determines how many layers of each error or stack should be recorded in your trace messages i.e. how long log you want to see.

    You can read more about it click here