BUG: \Neos\Flow\Log\Backend\BackendInterface->close()
never gets called
#3313
Labels
\Neos\Flow\Log\Backend\BackendInterface->close()
never gets called
#3313
Is there an existing issue for this?
Current Behavior
The
close
method of logging backends does not get called.Expected Behavior
The
close
method should be called somewhere when flow is shutting down. As it is described in the doc-comment:The
PsrLoggerFactory
andNeos\Flow\Log\Psr\Logger
should both lead to the backends being closed.Steps To Reproduce
Either create your own logging backend (following the docs) or just add
var_dump("closing"); die();
into theclose()
method of an existing (and used) backend.Environment
Anything else?
Talking to @mhsdesign he discovered that the
close
method had been called in theDefaultLogger
. But that got removed when PSR-3 got fully implemented:flow-development-collection/Neos.Flow.Log/Classes/DefaultLogger.php
Lines 158 to 163 in 82dd399
The text was updated successfully, but these errors were encountered: