<table role="table">
<thead>
<tr>
<th>Q</th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bug report?</td>
<td>no</td>
</tr>
<tr>
<td>Feature request?</td>
<td>no</td>
</tr>
<tr>
<td>BC Break report?</td>
<td>no</td>
</tr>
<tr>
<td>RFC?</td>
<td>no</td>
</tr>
<tr>
<td>Documentation request?</td>
<td>yes</td>
</tr>
<tr>
<td>Symfony version</td>
<td>3.4+</td>
</tr>
</tbody>
</table>
<p dir="auto">In last weeks I noticed that default logger behavior is confusing.</p>
<p dir="auto">Test kernel setup results in additional (usually unwanted) console output with phpunit, etc.</p>
<p dir="auto">Questions about it are pretty common on symfony slack channel, usually there is someone "who knows", but it shouldn't be like that.</p>
<p dir="auto">And it's not easy to find out how to change it. Currently, the best description I found is <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dunglas/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dunglas">@dunglas</a> <a href="https://symfony.com/blog/new-in-symfony-3-4-minimalist-psr-3-logger#comment-21662" rel="nofollow">comment</a> under a blogpost.</p>
<p dir="auto">Console component docs was improved in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18804640" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/8896" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/8896/hovercard" href="https://github.com/symfony/symfony/pull/8896">#8896</a>, but we still miss (I think so) documentation for minimalistic logger and something in testing section that could tell the others how it behaves and how to change it. Some recommendations here would be great.</p>
<p dir="auto">I would love to help, but first: how do you see it?</p>
<table role="table">
<thead>
<tr>
<th>Q</th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bug report?</td>
<td>yes</td>
</tr>
<tr>
<td>Feature request?</td>
<td>no</td>
</tr>
<tr>
<td>BC Break report?</td>
<td>yes</td>
</tr>
<tr>
<td>RFC?</td>
<td>no</td>
</tr>
<tr>
<td>Symfony version</td>
<td>3.4</td>
</tr>
</tbody>
</table>
<p dir="auto">When using a kernel, booting it and fully running it, logging is now on by default and outputting everything on your console. This means that in every kernel I define, I'll have to add the following line of configuration:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$container-&gt;register(NullLogger::class)-&gt;setDecoratedService('logger');"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>container</span>-&gt;<span class="pl-en">register</span>(<span class="pl-v">NullLogger</span>::class)-&gt;<span class="pl-en">setDecoratedService</span>(<span class="pl-s">'logger'</span>);</pre></div>
<p dir="auto">This issue is quite annoying as it garbles up the entire phpunit output, even when tests succeed. While I can understand that it might be nice for console apps to display this by default, I'm not interested in output like this when running tests (and nothing goes wrong).</p>