| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
@dg Related question – would you accept PR with TracyLoggerToPsrLoggerAdapter (i.e. the other way around)? The following would be possible $tracyLogger = Tracy\Debugger::getLogger();
$psrLogger = new Tracy\Bridges\Psr\TracyLoggerToPsrLoggerAdapter($tracyLogger);
$monolog = new Monolog\Logger(...);
$monolog->pushHandler(new Monolog\Handler\SyslogHandler(...));
$monolog->pushHandler(new Monolog\Handler\PsrHandler($psrLogger));
// ...
$tracyLogger = new Tracy\Bridges\Psr\PsrLoggerToTracyLoggerAdapter($monolog);
Tracy\Debugger::setLogger($tracyLogger); |
Sorry, something went wrong.
|
Alternative is to put those adapters to https://github.com/contributte/psr3-logging cc @f3l1x |
Sorry, something went wrong.
|
We can put these adapters into https://github.com/contributte/psr3-logging, if it'll be not part of the Tracy. |
Sorry, something went wrong.
If it is really useful, surely. (I suppose otherwise you wouldn't want it.)
It looks nice, but it means that the code in src knows about the code in bridges.
Names TracyToPsrLoggerAdapter & PsrToTracyLoggerAdapter seems imho better. |
Sorry, something went wrong.
|
The issue has been converted to PR with implementation. The tests failed on Travis with and odd error
which looks like either Tester (cc @milo) or PHP bug. Not directly, but indirectly, yes.
|
Sorry, something went wrong.
|
I restarted the build on Travis by using close-reopen combo and the test now works. |
Sorry, something went wrong.
|
Cool. 🤗 |
Sorry, something went wrong.
|
Thanks, merged. |
Sorry, something went wrong.
|
When will be this released ? |
Sorry, something went wrong.
|
Nette 3.0 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
@dg Would you accept PR with PSR-3 adapter? So it would be possible to use any PSR-3 compatible logger (e.g. Monolog) with Tracy, i.e. the following would be possible
Or we could even apply the adapter automatically, so the following would be possible: