Skip to content

Commit

Permalink
Fixed yiisoft#14612: Added note about session's logVars [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark committed Jan 21, 2018
1 parent 8b0702d commit 847e224
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions framework/log/Target.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ abstract class Target extends Component
* - `var.key` - only `var[key]` key will be logged.
* - `!var.key` - `var[key]` key will be excluded.
*
* Note that if you need $_SESSION to logged regardless if session was used you have to open it right at
* the start of your request.
*
* @see \yii\helpers\ArrayHelper::filter()
*/
public $logVars = ['_GET', '_POST', '_FILES', '_COOKIE', '_SESSION', '_SERVER'];
Expand Down

0 comments on commit 847e224

Please sign in to comment.