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

Log4j 1.2 bridge uses the wrong file pattern for rolling file appenders #710

Closed
wants to merge 3 commits into from

Conversation

ppkarwasz
Copy link
Contributor

The Log4j 1.x bridge incorrectly sets the pattern of the rolling file appenders. Moreover the RollingFileAppender did not have a time based triggering policy in the original Log4j 1.x.

The triggering policies in this PR are configured in the same way as in the Log4j1ConfigurationFactory, i.e. with a useless CompositeTriggeringPolicy.

This PR is linked with the tests in #706.

@garydgregory
Copy link
Member

@ppkarwasz
Please rebase on branch release-2.x.

@ppkarwasz
Copy link
Contributor Author

@garydgregory: done.

Piotr P. Karwasz and others added 3 commits January 20, 2022 23:13
Changes property resolution used by `Log4j1ConfigurationParser` to Log4j
1.x `OptionConverter` to be in line with the other two configuration
factories.
@garydgregory garydgregory changed the title Corrects the file pattern of the rolling appenders (Log4j 1.x bridge) Log4j 1.2 bridges uses the wrong file pattern for rolling appenders Jan 20, 2022
@garydgregory garydgregory changed the title Log4j 1.2 bridges uses the wrong file pattern for rolling appenders Log4j 1.2 bridge uses the wrong file pattern for rolling appenders Jan 20, 2022
@garydgregory garydgregory changed the title Log4j 1.2 bridge uses the wrong file pattern for rolling appenders Log4j 1.2 bridge uses the wrong file pattern for rolling file appenders Jan 20, 2022
@garydgregory
Copy link
Member

@ppkarwasz
Thank you for your updates. I brought in this PR with these changes:

  • Add the Apache license header to XML test fixtures.
  • Remove unused imports.
  • Add missing spaces in Java source.
  • Remove some whitespace.

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