"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "docs/guide/runtime-logging.md" between
yii2-2.0.35.tar.gz and yii2-2.0.36.tar.gz

About: Yii 2 is a high-performance component-based PHP framework for developing large-scale Web applications (source).

runtime-logging.md  (yii2-2.0.35):runtime-logging.md  (yii2-2.0.36)
skipping to change at line 142 skipping to change at line 142
The [[yii\log\Target::categories|categories]] property takes an array consisting of message category names or patterns. The [[yii\log\Target::categories|categories]] property takes an array consisting of message category names or patterns.
A target will only process messages whose category can be found or match one of the patterns in this array. A target will only process messages whose category can be found or match one of the patterns in this array.
A category pattern is a category name prefix with an asterisk `*` at its end. A category name matches a category pattern A category pattern is a category name prefix with an asterisk `*` at its end. A category name matches a category pattern
if it starts with the same prefix of the pattern. For example, `yii\db\Command:: execute` and `yii\db\Command::query` if it starts with the same prefix of the pattern. For example, `yii\db\Command:: execute` and `yii\db\Command::query`
are used as category names for the log messages recorded in the [[yii\db\Command ]] class. They both match are used as category names for the log messages recorded in the [[yii\db\Command ]] class. They both match
the pattern `yii\db\*`. the pattern `yii\db\*`.
If you do not specify the [[yii\log\Target::categories|categories]] property, it means the target will process If you do not specify the [[yii\log\Target::categories|categories]] property, it means the target will process
messages of *any* category. messages of *any* category.
Besides whitelisting the categories by the [[yii\log\Target::categories|categori In addition to specifying allowed categories using the [[yii\log\Target::categor
es]] property, you may also ies|categories]] property, you may also
blacklist certain categories by the [[yii\log\Target::except|except]] property. exclude certain categories by the [[yii\log\Target::except|except]] property. If
If the category of a message the category of a message
is found or matches one of the patterns in this property, it will NOT be process ed by the target. is found or matches one of the patterns in this property, it will NOT be process ed by the target.
The following target configuration specifies that the target should only process error and warning messages The following target configuration specifies that the target should only process error and warning messages
under the categories whose names match either `yii\db\*` or `yii\web\HttpExcepti on:*`, but not `yii\web\HttpException:404`. under the categories whose names match either `yii\db\*` or `yii\web\HttpExcepti on:*`, but not `yii\web\HttpException:404`.
```php ```php
[ [
'class' => 'yii\log\FileTarget', 'class' => 'yii\log\FileTarget',
'levels' => ['error', 'warning'], 'levels' => ['error', 'warning'],
'categories' => [ 'categories' => [
 End of changes. 1 change blocks. 
4 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)