This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/VarDumper
Fabien Potencier ad86e2dff0 feature #21502 Persist app bootstrapping logs for logger datacollector (ScullWM, nicolas-grekas)
This PR was merged into the 3.3-dev branch.

Discussion
----------

Persist app bootstrapping logs for logger datacollector

| Q             | A
| ------------- | ---
| Branch?       | 3.3
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | ?
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #21405
| License       | MIT

Logs generated during the container build are catched by the BufferingLogger with a special flag.

They are persist by the LoggerDataCollector and are available in the logger profiler.
In the profiler toolbar, the "container build" logs increment the current logs counter (even if the container was previously built).

<img width="540" alt="capture d ecran 2017-02-01 a 20 56 40" src="https://cloud.githubusercontent.com/assets/1017746/22523826/0bc12e4a-e8c1-11e6-830f-7f6238ea7423.png">

<img width="1022" alt="capture d ecran 2017-02-01 a 20 57 55" src="https://cloud.githubusercontent.com/assets/1017746/22523859/2c48a698-e8c1-11e6-9bdb-d85f3e692938.png">

The BufferingLogger now require the cachePath and the filesystem to persist a (unique) container build logs.
If the current workflow is ok, I will update the test coverage (actually they fail). Maybe we can display the appDevDebugProjectContainerCompiler.log content in that logger profile.

Commits
-------

2fd18b5503 [VarDumper] Fine tune dumping log messages
ce3ef6a96e Persist app bootstrapping logs for logger datacollector
2017-04-20 11:12:40 -06:00
..
Caster [VarDumper] Fine tune dumping log messages 2017-04-17 18:48:03 +02:00
Cloner [VarDumper] Fine tune dumping log messages 2017-04-17 18:48:03 +02:00
Dumper feature #21502 Persist app bootstrapping logs for logger datacollector (ScullWM, nicolas-grekas) 2017-04-20 11:12:40 -06:00
Exception tweak some deprecation messages 2015-10-06 17:57:37 +02:00
Resources/functions [DebugBundle] adjust after review 2014-09-23 16:25:59 +02:00
Test Merge branch '2.7' into 2.8 2017-02-18 18:06:33 +01:00
Tests feature #21502 Persist app bootstrapping logs for logger datacollector (ScullWM, nicolas-grekas) 2017-04-20 11:12:40 -06:00
.gitignore [VarDumper] Ignore /vendor/ directory in git 2015-02-17 17:54:47 +01:00
CHANGELOG.md Revert "Added missing changelog entry" 2015-04-03 09:54:01 +02:00
composer.json Merge branch '3.2' 2017-02-20 14:49:17 +01:00
LICENSE updated LICENSE year 2017-01-02 12:30:00 -08:00
phpunit.xml.dist Merge branch '2.8' into 3.2 2017-04-12 07:13:17 -07:00
README.md Fix typo in VarDumper README 2016-04-22 14:44:08 +02:00
VarDumper.php Add more callable type hints 2015-10-05 18:52:37 +02:00

VarDumper Component

The VarDumper component provides mechanisms for walking through any arbitrary PHP variable. Built on top, it provides a better dump() function that you can use instead of var_dump.

Resources