How to log context information to logger (session id, user, ...)

Comparing #1 with #2

Revision #2 was created by olafure olafure on Jun 8, 2009, 9:54:11 AM.

Added preload to the config

Content

Logging context information (session, user, ...) to the logfile can be of great help tracking down problems with specific users. *This will be available inrequires Yii 1.0.6.*

**config/main.php**
[...]
```php
<?php
return array(
 
    // ... 
 
    'preload'=>array('log', 'session'),
 
 
// ...
'components'=>array(
// ...
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
[...]