Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Support type definitions for DynamicMdcField Patterns #197

Closed
wants to merge 6 commits into from

Conversation

cchet
Copy link
Contributor

@cchet cchet commented Apr 29, 2019

Changes for Issue #116

…lder which doesn't call base class build() method

- Added missing setting of dynamicFieldTypes in *.log4j.GelfLogAppender
- Implemented log4j test
- Modified *.log4j2.GelfLogAppender to accept new xml attribute
- Started to implement tests for log4j2 but face issue there
- Added setting of dynamicFiledTypes in *.logback.GelfLogbackAppender
- Added tests for logback
@cchet
Copy link
Contributor Author

cchet commented May 1, 2019

Ok, the problem with the test reported on the issue only occurred when executed in IntelliJ, but now they pass except the Travis Java 11 tests.

- Added unit tests for GelfDynamicMdcFieldType log4j2 model
@cchet
Copy link
Contributor Author

cchet commented May 5, 2019

The JDK 11 test fails during initialization. Seems something is wrong with the install-jdk.sh 2018-04-30 command, but don't know why

@cchet
Copy link
Contributor Author

cchet commented May 16, 2019

Any news?

@mp911de mp911de changed the title Changes for Issue/116 Support type definitions for DynamicMdcField Patterns May 16, 2019
Copy link
Owner

@mp911de mp911de left a comment

Choose a reason for hiding this comment

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

Thanks a lot. I took a look and left a few comments. This is mostly a styling issue but we don't need all the final keywords in local variable declarations.

@mp911de
Copy link
Owner

mp911de commented Jun 13, 2019

Ping. Any update?

- Added overload to support setting via pattern instance additionally to setting via string
- unit test switched to junit4 because cannot use lambdas when language level is 1.6
@cchet
Copy link
Contributor Author

cchet commented Jun 17, 2019

Sorry for the late answer. I have implemented the changes

@mp911de mp911de added the type: enhancement A general enhancement label Jun 25, 2019
@mp911de mp911de added this to the 1.14.0 milestone Jun 25, 2019
mp911de pushed a commit that referenced this pull request Jun 25, 2019
We now support dynamic MDC field typing using Regex-based pattern rules so field types can be assigned dynamically.

Original pull request: #197.
mp911de added a commit that referenced this pull request Jun 25, 2019
Add documentation.

Original pull request: #197.
@mp911de
Copy link
Owner

mp911de commented Jun 25, 2019

Thanks a lot. That's squashed, merged and polished now.

@mp911de mp911de closed this Jun 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants