By default logs are only processed at the end of a request. FlushableLogRouter will process the logs as soon as they are flushed. Additionally it will take care of emptying the logs of each route.
Tested with Yii 1.1.6, but should also work with older versions.
Save the class file to your components folder and configure your application's log component to use this class. The example below will process logs every 10 entries.
'log' => array( 'class' => 'FlushableLogRouter', 'autoFlush' => 10, 'routes' => array(...) )
This component changes the $autoFlush property of CLogger.