Skip to content

Add Log4J2 PropertySource backed by the Spring Environment #32733

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

Closed
Tracked by #32578
philwebb opened this issue Oct 14, 2022 · 0 comments
Closed
Tracked by #32578

Add Log4J2 PropertySource backed by the Spring Environment #32733

philwebb opened this issue Oct 14, 2022 · 0 comments
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@philwebb
Copy link
Member

Log4j2 support many system properties that can be used to configure various things. If we add a custom Log4j2 PropertySource backed by Spring's Environment then users will be able to configure these system properties directly in their application.properties.

@philwebb philwebb self-assigned this Oct 14, 2022
@philwebb philwebb added the type: enhancement A general enhancement label Oct 14, 2022
@philwebb philwebb added this to the 3.0.0-RC1 milestone Oct 14, 2022
philwebb pushed a commit that referenced this issue Oct 14, 2022
Register a new `PropertySource` when initializing Log4j2 so that
properties may be resolved against Spring's Environment.

See gh-32733
philwebb added a commit that referenced this issue Oct 14, 2022
* pr/32578:
  Document Log4j2 extensions
  * Merge pull request for #32735:
    Polish 'Resolve URLs using Log4J2 mechanisms'
    Resolve URLs using Log4j2 mechanisms
  * Merge pull request for #32734:
    Polish 'Support profile specific Log4j2 configuration'
    Support profile specific Log4j2 configuration
  * Merge pull request for #32733:
    Polish 'Add Log4J2 PropertySource backed by the Spring Environment'
    Add Log4J2 PropertySource backed by the Spring Environment
  * Merge pull request for #32732:
    Polish 'Support Log4J2 string lookups from the Spring Environment'
    Support Log4J2 string lookups from the Spring Environment
  * Merge pull request for #32730:
    Polish 'Add Spring Environment to LoggerContext'
    Add Spring Environment to LoggerContext
  * Merge pull request for #32730:
    Polish 'Support 'log4j.configurationFile' system property'
    Support 'log4j.configurationFile' system property

Closes gh-32578
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant