The configuration array has a key for components, within that you have to add the log component, and within log you are supposed to declare the CWebLogRoute as a route. You will also have to preload the log component.
Minimal example (project-name/protected/config/main.php):
return array(
// other configurations
// ...
// preloading 'log' component
'preload'=>array('log'), // this is also necessary
// ...
'components'=>array(
// other components
// ...
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CWebLogRoute'
),
// ... other routes ...
)
),
// ...
)
);
Read the guide for more tips on logging.