Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StreamLogger #283

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

StreamLogger #283

wants to merge 2 commits into from

Conversation

JanTvrdik
Copy link
Contributor

  • bug fix? no
  • new feature? yes
  • BC break? no

implements #280

@dg
Copy link
Member

dg commented Feb 22, 2018

Isn't better this

Debugger::setLogger(new StreamLogger);
Debugger::enable();

than this?

Debugger::enable(Debugger::DETECT, new StreamLogger);

@JanTvrdik
Copy link
Contributor Author

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'));

@JanTvrdik
Copy link
Contributor Author

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.

@dg
Copy link
Member

dg commented Feb 25, 2018

create disparity between

It does not matter.

@dg dg force-pushed the master branch 4 times, most recently from d13a9ce to 7f24887 Compare February 25, 2018 23:58
@dg dg force-pushed the master branch 8 times, most recently from 427177a to 7ac33a2 Compare March 26, 2018 11:48
@dg dg force-pushed the master branch 11 times, most recently from 8675719 to 51fdf8a Compare April 6, 2018 06:37
@dg dg force-pushed the master branch 3 times, most recently from 34992a5 to 7e8d83f Compare September 29, 2023 13:25
@dg dg force-pushed the master branch 2 times, most recently from 53883a2 to e26bb83 Compare January 4, 2024 14:36
@dg dg force-pushed the master branch 3 times, most recently from ed50c8c to 1a1cfeb Compare April 3, 2024 18:39
@dg dg force-pushed the master branch 3 times, most recently from e978bbc to f8e0f10 Compare May 2, 2024 11:02
@dg dg force-pushed the master branch 4 times, most recently from 866bd61 to 7dd88f7 Compare June 18, 2024 21:56
@dg dg force-pushed the master branch 4 times, most recently from b39998b to 5906211 Compare August 7, 2024 02:06
@dg dg force-pushed the master branch 2 times, most recently from e89fde9 to 5718904 Compare October 4, 2024 23:10
@dg dg force-pushed the master branch 4 times, most recently from 33ec3c4 to 8d3f47d Compare November 7, 2024 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants