make LogTransport work with custom implementations of PSR LoggerInterface
Merge pull request #5816 from alprs/fix/flexible-logtransport

[4.2] Make LogTransport work with custom implementations of PSR LoggerInterface