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

SLING-7529 - implemented layout inheritance in log encoder #3

Merged
merged 3 commits into from
Mar 12, 2018
Merged

SLING-7529 - implemented layout inheritance in log encoder #3

merged 3 commits into from
Mar 12, 2018

Conversation

CptBartender
Copy link
Contributor

I've implemented a simple method that finds the best (longest) match among the registered layouts and put it in place of the //TODO tag within the code.

I did not run the tests as these don't pass on my environment for unrelated reasons, however the class is not mentioned in any tests so I'm assuming this shouldn't break existing tests.

@chetanmeh
Copy link
Member

Looks fine. Can you add a test case for the same

…y; minor fix in how categories are matched
@CptBartender
Copy link
Contributor Author

@chetanmeh I've added some simple JUnit tests as well as fixed one conrnercase where loggers for similarly-named packages might end up using wrong layouts - probably wouldn't occur in AEM setup, but it theoretically can happen and thus is a bug - I've added a test case for it as well.

If the code is ok as-is, then please let me know if it would be possible to release it soon as 5.1.3, otherwise please let me know your thoughts on the code.

Cheers

@CptBartender
Copy link
Contributor Author

@chetanmeh : any chance you could find some time to take a look at the update to this PR?

@chetanmeh
Copy link
Member

@CptBartender Sorry for the delay here. Would look into this early next week

@chetanmeh
Copy link
Member

@CptBartender Can you add license headers on the newly added files in test. Without that build fails for mvn verfiy in RAT check

@CptBartender
Copy link
Contributor Author

@chetanmeh I've added the requested headers

@chetanmeh chetanmeh merged commit 2de638f into apache:master Mar 12, 2018
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.

2 participants