Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[FrameworkBundle][HttpKernel][MonologBridge] Revisit wiring of debug loggers#51284

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:6.4fromnicolas-grekas:loglog
Aug 5, 2023

Conversation

@nicolas-grekas
Copy link
Member

QA
Branch?6.4
Bug fix?no
New feature?yes
Deprecations?yes
Tickets-
LicenseMIT
Doc PR-

Replaces#51229

Implements the suggestions from@stof and@Seldaek in#51229 (comment)

It turns our we had almost everything available. This is mostly a matter of wiring.

  • Deprecate classSymfony\Bridge\Monolog\Logger
  • DeprecateAddDebugLogProcessorPass::configureLogger()
  • AddDebugLoggerConfigurator to HttpKernel, which wiresDebugProcessor when desired

Bonus:

  • Add argument$debug to HttpKernel'sLogger
  • DeprecateEnableLoggerDebugModePass in favor of the previous

@carsonbotcarsonbot added this to the6.4 milestoneAug 5, 2023
@carsonbotcarsonbot changed the title[HttpKernel][MonologBridge][FrameworkBundle] Revisit wiring of debug loggers[FrameworkBundle][HttpKernel][MonologBridge] Revisit wiring of debug loggersAug 5, 2023

publicstaticfunctionconfigureLogger(Logger$logger):void
{
if (!\in_array(\PHP_SAPI, ['cli','phpdbg'],true) &&method_exists($logger,'enableDebug')) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

why removing this check ?

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

because the method is always available per composer constraints nowadays

nicolas-grekas added a commit that referenced this pull requestAug 23, 2023
…oggerConfigurator (nicolas-grekas)This PR was merged into the 6.4 branch.Discussion----------[HttpKernel] Fix checking for the runtime mode in DebugLoggerConfigurator| Q             | A| ------------- | ---| Branch?       | 6.4| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Tickets       | -| License       | MIT| Doc PR        | -Fixing#51284, my bad. Eating your own dog food works :)Commits-------1836a1e [HttpKernel] Fix checking for the runtime mode in DebugLoggerConfigurator
This was referencedOct 21, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@stofstofstof left review comments

@dunglasdunglasAwaiting requested review from dunglasdunglas is a code owner

@ycerutoycerutoAwaiting requested review from ycerutoyceruto is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

6.4

Development

Successfully merging this pull request may close these issues.

3 participants

@nicolas-grekas@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp