log\Target $logVars

$logVars public property

List of the PHP predefined variables that should be logged in a message. Note that a variable must be accessible via $GLOBALS. Otherwise it won't be logged.

Defaults to ['_GET', '_POST', '_FILES', '_COOKIE', '_SESSION', '_SERVER'].

Since version 2.0.9 additional syntax can be used: Each element could be specified as one of the following:

  • var - var will be logged.
  • var.key - only var[key] key will be logged.
  • !var.key - var[key] key will be excluded.

See also yii\helpers\ArrayHelper::filter().

public array $logVars = ['_GET', '_POST', '_FILES', '_COOKIE', '_SESSION', '_SERVER']
doc_Yii
2016-10-30 17:06:58
Comments
Leave a Comment

Please login to continue.