| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Isn't better this Debugger::setLogger(new StreamLogger);
Debugger::enable();than this? Debugger::enable(Debugger::DETECT, new StreamLogger); |
Sorry, something went wrong.
|
The issue is that in Nette you're never actually calling Debugger::enable(), because there is $configurator->enableDebugger(). So, the actual comparison is Tracy\Debugger::setLogger(new Tracy\StreamLogger('php://stderr'));
$configurator = new Nette\Configurator();
$configurator->enableDebugger();vs. $configurator = new Nette\Configurator();
$configurator->enableDebugger(new Tracy\StreamLogger('php://stderr')); |
Sorry, something went wrong.
|
When I think about it now, the logic could be moved to Nette\Configurator – but it would create disparity between Tracy\Debuger::enable() and Nette\Configurator::enableDebugger() signatures. |
Sorry, something went wrong.
It does not matter. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
implements #280