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 2 times, most recently from a9da0b0 to b505386 Compare April 5, 2023 10:44
@dg dg force-pushed the master branch 2 times, most recently from 909782a to 3d0b6b8 Compare April 7, 2023 15:10
@dg dg force-pushed the master branch 3 times, most recently from 69cb79a to 209ac30 Compare June 20, 2023 13:41
@dg dg force-pushed the master branch 5 times, most recently from c17700c to 024db76 Compare July 30, 2023 13:57
@dg dg force-pushed the master branch 4 times, most recently from 55d01f2 to 481422e Compare September 26, 2023 04:06
@dg dg force-pushed the master branch 4 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
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.

None yet

2 participants