Hi !
I want to log all message types but I want to receive by mail the errors.
But it only logs the messages and doesnt send mails, or viceversa
array(
......
'preload'=>array('log'),
'components'=>array(
......
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CFileLogRoute',
'levels'=>'info, warning, [b]error[/b]',
'categories'=>'system.*',
),
array(
'class'=>'CEmailLogRoute',
'levels'=>'[b]error[/b]',
'emails'=>'admin@example.com',
),
),
),
),
)