You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That would be nice to allow users mock time for log records.
\Monolog\Logger::addRecord has an optional parameter for log timestamp. However, methods that implement Psr\Log\LoggerInterface do not have such a parameter.
I think the best way to fix this is passing optional $clock parameter to the logger constructor that implements PSR 20 interface.
Then addRecord could fetch timestamp from the clock service
The text was updated successfully, but these errors were encountered:
That would be nice to allow users mock time for log records.
\Monolog\Logger::addRecord
has an optional parameter for log timestamp. However, methods that implementPsr\Log\LoggerInterface
do not have such a parameter.I think the best way to fix this is passing optional
$clock
parameter to the logger constructor that implements PSR 20 interface.Then
addRecord
could fetch timestamp from the clock serviceThe text was updated successfully, but these errors were encountered: