Logging To File

I have configured log for yii application as follows…






			'levels'=>'info, error, warning',




But it is logging file stack trace also with log message. I don’t want filename or line number in log message. How to remove these info?

Check your index.php for:

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

Set it to zero or comment it out, becase Yii defaults to 0;

Trace is always appended to logged messages when YII_DEBUG is defined and true.