Skip to content

Conversation

Arkalo2
Copy link

@Arkalo2 Arkalo2 commented May 27, 2024

Q A
Branch? 3.x
Bug fix? no
New feature? yes
Deprecations? no
Tickets
License MIT
Doc PR

This feature aims to separate the enabling of handlers based on the environment.

Use Case :

You have 3 servers on your project : dev, staging, and prod

  • On your dev machine, you are in the dev environment.
  • On your staging server, you are in the prod environment.
  • On your prod server, you are in the prod environment.

Currently, you can't disable handlers for a specific environment. For an instance, you can't disable logging only in your staging environment.

With the enabled parameter, you are able to disable logging only in the staging environment.

@GromNaN GromNaN changed the base branch from 4.x to 3.x September 26, 2025 08:12
Copy link
Member

@GromNaN GromNaN left a comment

Choose a reason for hiding this comment

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

I find this feature useful. Would you like to rebase your PR on the branch 3.x (we moved files), and add a test case in FixtureMonologExtensionTestCase?

@Arkalo2 Arkalo2 force-pushed the master branch 4 times, most recently from 575e2a4 to 4e4e988 Compare October 15, 2025 14:48
Co-authored-by: Nicolas Grekas <nicolas.grekas@gmail.com>
Co-authored-by: Jérôme Tamarelle <jerome@tamarelle.net>
@GromNaN
Copy link
Member

GromNaN commented Oct 16, 2025

Thank you @Arkalo2.

@GromNaN GromNaN merged commit 26ecfa2 into symfony:3.x Oct 16, 2025
15 checks passed
@Arkalo2
Copy link
Author

Arkalo2 commented Oct 16, 2025

Thanks @GromNaN @nicolas-grekas for your reviews

I'll add a PR for documentation

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.

3 participants