Difference between #1 and #2 of
How to log context information to logger (session id, user, ...)

Revision #2 has been created by olafure on Jun 8, 2009, 9:54:11 AM with the memo:

Added preload to the config
« previous (#1) next (#3) »

Changes

Title unchanged

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

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

Content changed

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(
[...]
2 0
5 followers
Viewed: 24 281 times
Version: 1.1
Category: Tutorials
Tags: Logging
Written by: olafure
Last updated by: ajsharma
Created on: Jun 5, 2009
Last updated: 11 years ago
Update Article

Revisions

View all history