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

Introduce dedicated logger channel for deprecations#13642

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

Closed

Conversation

@l-vo
Copy link
Contributor

@l-vol-vo commentedMay 5, 2020
edited
Loading

Close#13631

Deprecations in logs
~~~~~~~~~~~~~~~~~~~~
If you use the Symfony default configuration, the deprecations are also logged in a ``prod.deprecations.log`` file (prod environment):
Copy link
Contributor

Choose a reason for hiding this comment

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

iirc this config is not enabled now by default in the recipe

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Yes you're right, it's not enabled but present in the recipe as a comment because as a rule of thumb you only need to log deprecations in prod when you plan to migrate to the next major. IMHO it may be considered as the default configuration even if it's not always enabled.

Copy link
Contributor

Choose a reason for hiding this comment

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

Understood, but maybe rewrote mentioning that this need to be enable, as by default config, it is not the case, and one can understood it is and then never find this file :)

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Oh yes sorry; I didn't make attention that the problem was in this section, thank you 👍

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Updated 🙂

@nicolas-grekas
Copy link
Member

Please reviewsymfony/recipes#775 and update this PR accordingly if it looks good to you.

@l-vol-voforce-pushed thelog_deprecations_on_specific_channel branch fromd647d6e toe4a78d9CompareJune 30, 2020 13:04
@javiereguiluz
Copy link
Member

Laurent, thanks for this contribution. However, we're closing it as "won't merge". Why? The feature that you created is nice ... but the nicest thing of it is its great discoverability. The needed config comes automatically via Flex (for new projects or those force-updating their recipes) and the new file is easily spot in the var/logs/ directory of the application, so I don't think we need to explain this explicitly to users. Thanks for understanding!

@l-vol-vo deleted the log_deprecations_on_specific_channel branchOctober 30, 2020 15:40
@l-vo
Copy link
ContributorAuthor

@javiereguiluz No problem, I understand 🙂

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@noniagriconomienoniagriconomienoniagriconomie left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Log deprecations on a dedicated Monolog channel

5 participants

@l-vo@nicolas-grekas@javiereguiluz@noniagriconomie@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp