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/Debug
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
..
Exception [Debug] Deprecate ContextErrorException 2017-01-24 10:54:11 +01:00
FatalErrorHandler Merge branch '2.8' into 3.1 2017-01-21 09:01:39 -08:00
Resources/ext Revert "fixed typo" 2017-01-21 08:37:26 -08:00
Tests [VarDumper] Fine tune dumping log messages 2017-04-17 18:48:03 +02:00
.gitignore [Debug] fixed minor bugs 2013-04-07 18:19:06 +02:00
BufferingLogger.php [Debug] Add BufferingLogger for errors that happen before a proper logger is configured 2015-08-29 20:00:45 +02:00
CHANGELOG.md [Debug] Deprecate ContextErrorException 2017-01-24 10:54:11 +01:00
composer.json fixed Composer constraints 2017-02-18 11:13:35 -08:00
Debug.php Merge branch '2.8' into 3.0 2016-03-10 11:34:12 +01:00
DebugClassLoader.php [VarDumper] Fine tune dumping log messages 2017-04-17 18:48:03 +02:00
ErrorHandler.php Merge branch '3.2' 2017-04-19 22:25:39 +02:00
ExceptionHandler.php Fix @param in PHPDoc 2017-03-28 23:38:24 +02:00
LICENSE updated LICENSE year 2017-01-02 12:30:00 -08:00
phpunit.xml.dist fail when detecting risky tests 2017-04-12 09:39:27 +02:00
README.md Updated all the README files 2016-03-04 08:12:06 +01:00

Debug Component

The Debug component provides tools to ease debugging PHP code.

Resources