Can CLogRouter handle fatal errors?

Hi,

I noticed that CLogRouter doesn’t log fatal errors in the log file.

Is it possible to turn it on in the configuration?




'log'=>array(

			'class'=>'CLogRouter',

			'routes'=>array(

				array(

					'class'=>'CFileLogRoute',

					'levels'=>'error, warning',

				),

				// uncomment the following to show log messages on web pages

				/* 

				array(

					'class'=>'CWebLogRoute',

				),

				 */

			),

		),



Yii doesn’t catch fatal errors.

You have to register your own shutdown function to add this feature.

Take I look at this code CatchFatalErrors

I didn’t test it, but I did similar by using the php method


register_shutdown_function()

.