Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit 7108507

Browse files
Merge pull request #304 from facebook/logging
Implemented logging structure
2 parents adcaf6e + e954e7e commit 7108507

File tree

10 files changed

+339
-196
lines changed

10 files changed

+339
-196
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ If you are encountering problems, the following tips may help in troubleshooting
8282

8383
- If content is missing from your transformed article, more likely than not there isn't a **Transformer Rule** matching an element in your source markup. See how to configure appropriate rules for your content in the [Transformer Rules documentation](https://developers.facebook.com/docs/instant-articles/sdk/transformer-rules).
8484

85-
- Set the `threshold` in the [configuration of the Logger](https://logging.apache.org/log4php/docs/configuration.html#PHP) to `DEBUG` to expose more details about the items processed by the Transformer.
85+
- Set the `threshold` in the transformer Logger level to `DEBUG` to expose more details about the items processed by the Transformer. `TransformerLog::setLevel(TransformerLog::DEBUG);`
8686

8787
- Refer to the existing [tests of the `Elements`](https://github.com/facebook/facebook-instant-articles-sdk-php/tree/master/tests/Facebook/InstantArticles/Elements) for examples of what is required of each and to potentially create your own tests (which can be run with `$ composer test`).
8888

composer.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@
1111
}],
1212
"require": {
1313
"php": "^5.4 || ^7.0",
14-
"symfony/css-selector": "2.8.* || ^3.0",
15-
"facebook/graph-sdk": "~5.0",
16-
"apache/log4php": "2.3.0"
14+
"symfony/css-selector": "2.8.*",
15+
"facebook/graph-sdk": "~5.0"
1716
},
1817
"require-dev": {
1918
"fzaninotto/faker": "^1.6.0",
20-
"phpunit/phpunit": "^4.8.36",
19+
"phpunit/phpunit": "4.8.*",
20+
"symfony/yaml": "2.1.*",
21+
"phpdocumentor/reflection-docblock": "^2.0",
2122
"squizlabs/php_codesniffer": "^2.6.0"
2223
},
2324
"autoload": {

0 commit comments

Comments
 (0)