Get path alias of current object

Hi,

I’m doing some logging and finding it a drag to always type Yii::log($exception->getMessage(), ‘error’, ‘system.web.controller.myController’). Anybody know how to get the path alias of $this object?

Looking for something like: Yii::log($exception->getMessage(), ‘error’, Yii::app()->getAlias($this)). Could be handy when writing an external helper function.

Thanks,

Matt

Can be useful get_class function?